blob: 2892c37dd01b0d8441be0e841d3f7a4f90dce749 [file] [log] [blame]
This tests that an inactive document cannot access a named element in a cross-origin active document.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Lookup named element whose name corresponds to an element in the initial about:blank document:
PASS elementAInDetachedWindowFunction() is elementAInInactiveDocument
Lookup named element whose name does not correspond to an element in the initial about:blank document:
PASS elementBInDetachedWindowFunction() threw exception ReferenceError: Can't find variable: B.
PASS successfullyParsed is true
TEST COMPLETE