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

Side by Side Diff: LayoutTests/pointer-lock/pointerlockchange-pointerlockerror-events.html

Issue 291333005: Remove 'webkit' prefix for pointerlockchange/error in unprefixed layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months 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
« no previous file with comments | « LayoutTests/pointer-lock/pointerlockchange-event-on-lock-lost-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.js"> </script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <div> 8 <div>
9 <div id="target1"></div> 9 <div id="target1"></div>
10 <div id="target2"></div> 10 <div id="target2"></div>
11 <iframe id="iframe1"></iframe> 11 <iframe id="iframe1"></iframe>
12 <iframe id="iframe2"></iframe> 12 <iframe id="iframe2"></iframe>
13 </div> 13 </div>
14 <script> 14 <script>
15 description("Test expected pointerlockchange and pointerlockerror events.") 15 description("Test expected pointerlockchange and pointerlockerror events.")
16 window.jsTestIsAsync = true; 16 window.jsTestIsAsync = true;
17 17
18 targetDiv1 = document.getElementById("target1"); 18 targetDiv1 = document.getElementById("target1");
19 targetDiv2 = document.getElementById("target2"); 19 targetDiv2 = document.getElementById("target2");
20 targetIframe1 = document.getElementById("iframe1"); 20 targetIframe1 = document.getElementById("iframe1");
21 targetIframe2 = document.getElementById("iframe2"); 21 targetIframe2 = document.getElementById("iframe2");
22 22
23 // Events must not bubble from document. 23 // Events must not bubble from document.
24 function errorIfEventsBubble() { 24 function errorIfEventsBubble() {
25 testFailed("Events must not bubble to the window."); 25 testFailed("Events must not bubble to the window.");
26 finishJSTest(); 26 finishJSTest();
27 } 27 }
28 window.addEventListener("webkitpointerlockchange", errorIfEventsBubble); 28 window.addEventListener("pointerlockchange", errorIfEventsBubble);
29 window.addEventListener("webkitpointerlockerror", errorIfEventsBubble); 29 window.addEventListener("pointerlockerror", errorIfEventsBubble);
30 30
31 todo = [ 31 todo = [
32 function () { 32 function () {
33 expectNoEvents("Unlock."); 33 expectNoEvents("Unlock.");
34 document.exitPointerLock(); 34 document.exitPointerLock();
35 doNextStepWithUserGesture(); 35 doNextStepWithUserGesture();
36 }, 36 },
37 function () { 37 function () {
38 expectOnlyChangeEvent("Lock targetDiv1."); 38 expectOnlyChangeEvent("Lock targetDiv1.");
39 targetDiv1.requestPointerLock(); 39 targetDiv1.requestPointerLock();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 doNextStep(); 108 doNextStep();
109 }, 109 },
110 function () { 110 function () {
111 testRunner.didAcquirePointerLock(); 111 testRunner.didAcquirePointerLock();
112 }, 112 },
113 ]; 113 ];
114 doNextStep(); 114 doNextStep();
115 </script> 115 </script>
116 </body> 116 </body>
117 </html> 117 </html>
OLDNEW
« no previous file with comments | « LayoutTests/pointer-lock/pointerlockchange-event-on-lock-lost-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698