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

Side by Side Diff: LayoutTests/pointer-lock/pointerlockchange-event-on-lock-lost-prefixed.html

Issue 437443005: Revert of Revert of Remove prefixed Pointer Lock API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 <script src="../http/tests/resources/pointer-lock/pointer-lock-test-harness-pref ixed.js"></script>
6 </head>
7 <body>
8 <div>
9 <div id="target1"></div>
10 </div>
11 <script>
12 description("Test that webkitpointerlockchange event is dispatched when lock is lost.")
13 window.jsTestIsAsync = true;
14 shouldBeDefined("window.testRunner");
15
16 targetDiv1 = document.getElementById("target1");
17
18 todo = [
19 function () {
20 expectOnlyChangeEvent("Lock targetDiv1.");
21 targetDiv1.webkitRequestPointerLock();
22 // doNextStep called by event handler.
23 },
24 function () {
25 shouldBe("document.webkitPointerLockElement", "targetDiv1");
26 expectOnlyChangeEvent("Host initiated unlock.");
27 testRunner.didLosePointerLock();
28 // doNextStep called by event handler.
29 },
30 function () {
31 shouldBe("document.webkitPointerLockElement", "null");
32 doNextStep();
33 },
34 ];
35 doNextStepWithUserGesture();
36 </script>
37 </body>
38 </html>
39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698