Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Side by Side Diff: LayoutTests/pointer-lock/locked-element-iframe-removed-from-dom.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../http/tests/resources/js-test-pre.js"></script> 4 <script src="../fast/js/resources/js-test-pre.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.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;
(...skipping 22 matching lines...) Expand all
37 expectOnlyChangeEvent("Remove iframe & immediately lock target2. (ma in document handler)"); 37 expectOnlyChangeEvent("Remove iframe & immediately lock target2. (ma in document handler)");
38 expectNoEvents("Remove iframe & immediately lock target2. (iframe ha ndler)", targetIframe1.contentDocument); 38 expectNoEvents("Remove iframe & immediately lock target2. (iframe ha ndler)", targetIframe1.contentDocument);
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 <script src="../http/tests/resources/js-test-post.js"></script>
48 </body> 47 </body>
49 </html> 48 </html>
OLDNEW
« no previous file with comments | « LayoutTests/pointer-lock/lock-element-not-in-dom.html ('k') | LayoutTests/pointer-lock/locked-element-removed-from-dom.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698