1 Tests that manipulating location properties in a just-created window object does not crash. Note: Turn off pop-up blocking to run this in-browser.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS testWindow.location.toString() is 'about:blank'
7 PASS testWindow.location.href is 'about:blank'
8 PASS testWindow.location.protocol is 'about:'
9 PASS testWindow.location.host is ''
10 PASS testWindow.location.hostname is ''
11 PASS testWindow.location.port is ''
12 PASS testWindow.location.pathname is 'blank'
13 PASS testWindow.location.search is ''
14 PASS testWindow.location.hash is ''
15 PASS testWindow.location.href = 'data:text/plain,b' is 'data:text/plain,b'
16 PASS testWindow.location.protocol = 'data' is 'data'
17 PASS testWindow.location.host = 'c' is 'c'
18 PASS testWindow.location.hostname = 'd' is 'd'
19 PASS testWindow.location.port = 'e' is 'e'
20 PASS testWindow.location.pathname = 'f' is 'f'
21 PASS testWindow.location.search = 'g' is 'g'
22 PASS testWindow.location.hash = 'h' is 'h'
23 PASS testWindow.location.assign('data:text/plain,i') is undefined
24 PASS testWindow.location.replace('data:text/plain,j') is undefined
25 PASS testWindow.location.reload() is undefined
26 PASS testWindow.location.toString() is 'about:blank'
27 PASS testWindow.location.href is 'about:blank'
28 PASS testWindow.location.protocol is 'about:'
29 PASS testWindow.location.host is ''
30 PASS testWindow.location.hostname is ''
31 PASS testWindow.location.port is ''
32 PASS testWindow.location.pathname is 'blank'
33 PASS testWindow.location.search is ''
34 PASS testWindow.location.hash is ''
35 PASS successfullyParsed is true