| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 <script src="../http/tests/resources/pointer-lock/pointer-lock-test-harness.js">
</script> | 5 <script src="../http/tests/resources/pointer-lock/pointer-lock-test-harness-pref
ixed.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <div> | 8 <div> |
| 9 <iframe id="iframe1"></iframe> | 9 <iframe id="iframe1"></iframe> |
| 10 <div id="target2"></div> | 10 <div id="target2"></div> |
| 11 </div> | 11 </div> |
| 12 <script> | 12 <script> |
| 13 description("Test removing an iframe containing a locked element causes lock
to be released.") | 13 description("Test removing an iframe containing a locked element causes lock
to be released.") |
| 14 window.jsTestIsAsync = true; | 14 window.jsTestIsAsync = true; |
| 15 | 15 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 39 targetIframe1.parentElement.removeChild(targetIframe1); | 39 targetIframe1.parentElement.removeChild(targetIframe1); |
| 40 targetDiv2.webkitRequestPointerLock(); | 40 targetDiv2.webkitRequestPointerLock(); |
| 41 shouldBe("document.webkitPointerLockElement", "null"); | 41 shouldBe("document.webkitPointerLockElement", "null"); |
| 42 // doNextStep called by event handler. | 42 // doNextStep called by event handler. |
| 43 }, | 43 }, |
| 44 ]; | 44 ]; |
| 45 doNextStep(); | 45 doNextStep(); |
| 46 </script> | 46 </script> |
| 47 </body> | 47 </body> |
| 48 </html> | 48 </html> |
| OLD | NEW |