blob: 7b8dae093c3a391dd6db1a415bd1ba025f5907cf [file] [log] [blame]
Tests [[Delete]] for cross origin Window / Location.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS delete targetWindow.existingProperty threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match..
PASS delete targetWindow.name threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match..
PASS delete targetWindow[1] threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match..
PASS delete targetWindow.location.existingProperty threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match..
PASS delete targetWindow.location.host threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match..
PASS delete targetWindow.location[1] threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame. Protocols, domains, and ports must match..
PASS: successfullyParsed should be 'true' and is.
TEST COMPLETE
--------
Frame: '<!--frame1-->'
--------
----- tests for deleting the properties of window, window.history, and window.location cross-domain -----
PASS: window.existingProperty should be 'test value' and is.
PASS: window[1] should be 'undefined' and is.
PASS: window.history.existingProperty should be 'test value' and is.
PASS: window.history[1] should be 'test value' and is.
PASS: window.location.existingProperty should be 'test value' and is.
PASS: window.location[1] should be 'test value' and is.