blob: bb0e6f0973a77bbdb8fc3a69b5adc5fd7d5df41c [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 Error: SYNTAX_ERR: DOM Exception 12.
PASS location.protocol = ':' threw exception Error: SYNTAX_ERR: DOM Exception 12.
PASS location.protocol = 'é' threw exception Error: SYNTAX_ERR: DOM Exception 12.
PASS location.protocol = '[' threw exception Error: SYNTAX_ERR: DOM Exception 12.
PASS location.protocol = '0' threw exception Error: SYNTAX_ERR: DOM Exception 12.
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