blob: 189ff4a407a76d0f04ec7c05a539adca7caf7db9 [file] [log] [blame]
Basic test for URL.toJSON()
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS new URL('https://example.com/').toJSON() is "https://example.com/"
PASS new URL('https://example.com/').toString() is "https://example.com/"
PASS new URL('https://example.com/').href is "https://example.com/"
PASS JSON.stringify(new URL('https://example.com/#"')) is "\"https://example.com/#\\\"\""
PASS JSON.parse(JSON.stringify(new URL('https://example.com/#"'))) is "https://example.com/#\""
PASS successfullyParsed is true
TEST COMPLETE