blob: 64b7dc4d843267a66938cd1c260519b66758ac10 [file] [edit]
This test checks that trying to lock or unlock a hidden document results in a SecurityError.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS document.hidden is true
PASS SecurityError rejected promise with SecurityError: Only visible documents can lock the screen orientation.
PASS screen.orientation.unlock() threw exception SecurityError: Only visible documents can unlock the screen orientation.
PASS successfullyParsed is true
TEST COMPLETE