blob: 342102aa4c767c80d89ee262577f3bf93ced7306 [file] [log] [blame]
Test URL protocol setter.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS location.protocol = '' threw exception SyntaxError: The string did not match the expected pattern..
PASS location.protocol = ':' threw exception SyntaxError: The string did not match the expected pattern..
PASS location.protocol = 'é' threw exception SyntaxError: The string did not match the expected pattern..
PASS location.protocol = '[' threw exception SyntaxError: The string did not match the expected pattern..
PASS location.protocol = '0' threw exception SyntaxError: The string did not match the expected pattern..
PASS a.protocol is 'http:'
PASS a.href is 'https://www.apple.com/'
PASS a.href is 'http://www.apple.com/'
PASS a.href is 'https://www.apple.com/'
PASS successfullyParsed is true
TEST COMPLETE