Remove webkit prefix from pointer lock tests.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jul 2014 22:36:24 +0000 (22:36 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Jul 2014 22:36:24 +0000 (22:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=134744

Patch by Alex Christensen <achristensen@webkit.org> on 2014-07-08
Reviewed by Brady Eidson.

* http/tests/pointer-lock/iframe-sandboxed-allow-pointer-lock-expected.txt:
* http/tests/pointer-lock/iframe-sandboxed-allow-pointer-lock.html:
* http/tests/pointer-lock/iframe-sandboxed-expected.txt:
* http/tests/pointer-lock/iframe-sandboxed-nested-allow-pointer-lock-expected.txt:
* http/tests/pointer-lock/iframe-sandboxed-nested-allow-pointer-lock.html:
* http/tests/pointer-lock/iframe-sandboxed-nested-disallow-then-allow-pointer-lock-expected.txt:
* http/tests/pointer-lock/iframe-sandboxed-nested-disallow-then-allow-pointer-lock.html:
* http/tests/pointer-lock/iframe-sandboxed.html:
* http/tests/pointer-lock/pointerlockelement-different-origin-expected.txt:
* http/tests/pointer-lock/pointerlockelement-different-origin.html:
* http/tests/pointer-lock/pointerlockelement-same-origin-expected.txt:
* http/tests/pointer-lock/pointerlockelement-same-origin.html:
* http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents-expected.txt:
* http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents.html:
* http/tests/resources/pointer-lock/iframe-common.js:
(document.onpointerlockchange):
(document.onpointerlockerror):
(document.onwebkitpointerlockchange): Deleted.
(document.onwebkitpointerlockerror): Deleted.
* http/tests/resources/pointer-lock/pointer-lock-test-harness.js:
(expectOnlyChangeEvent):
(expectOnlyErrorEvent):
(expectNoEvents):
* pointer-lock/bug90391-move-then-window-open-crash-expected.txt:
* pointer-lock/bug90391-move-then-window-open-crash.html:
* pointer-lock/lock-already-locked-expected.txt:
* pointer-lock/lock-already-locked.html:
* pointer-lock/lock-element-not-in-dom-expected.txt:
* pointer-lock/lock-element-not-in-dom.html:
* pointer-lock/locked-element-iframe-removed-from-dom-expected.txt:
* pointer-lock/locked-element-iframe-removed-from-dom.html:
* pointer-lock/locked-element-removed-from-dom-expected.txt:
* pointer-lock/locked-element-removed-from-dom.html:
* pointer-lock/mouse-event-api-expected.txt:
* pointer-lock/mouse-event-api.html:
* pointer-lock/mouse-event-delivery-expected.txt:
* pointer-lock/mouse-event-delivery.html:
* pointer-lock/pointer-lock-api-expected.txt:
* pointer-lock/pointer-lock-api.html:
* pointer-lock/pointerlockchange-event-on-lock-lost-expected.txt:
* pointer-lock/pointerlockchange-event-on-lock-lost.html:
* pointer-lock/pointerlockchange-pointerlockerror-events-expected.txt:
* pointer-lock/pointerlockchange-pointerlockerror-events.html:
* pointer-lock/pointerlockelement-null-when-pending-expected.txt:
* pointer-lock/pointerlockelement-null-when-pending.html:
Remove webkit prefix on pointer lock functions and events.
This should have been done in r170585.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170897 268f45cc-cd09-0410-ab3c-d52691b4dbfc

39 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/pointer-lock/iframe-sandboxed-allow-pointer-lock-expected.txt
LayoutTests/http/tests/pointer-lock/iframe-sandboxed-allow-pointer-lock.html
LayoutTests/http/tests/pointer-lock/iframe-sandboxed-expected.txt
LayoutTests/http/tests/pointer-lock/iframe-sandboxed-nested-allow-pointer-lock-expected.txt
LayoutTests/http/tests/pointer-lock/iframe-sandboxed-nested-allow-pointer-lock.html
LayoutTests/http/tests/pointer-lock/iframe-sandboxed-nested-disallow-then-allow-pointer-lock-expected.txt
LayoutTests/http/tests/pointer-lock/iframe-sandboxed-nested-disallow-then-allow-pointer-lock.html
LayoutTests/http/tests/pointer-lock/iframe-sandboxed.html
LayoutTests/http/tests/pointer-lock/pointerlockelement-different-origin-expected.txt
LayoutTests/http/tests/pointer-lock/pointerlockelement-different-origin.html
LayoutTests/http/tests/pointer-lock/pointerlockelement-same-origin-expected.txt
LayoutTests/http/tests/pointer-lock/pointerlockelement-same-origin.html
LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents-expected.txt
LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents.html
LayoutTests/http/tests/resources/pointer-lock/iframe-common.js
LayoutTests/http/tests/resources/pointer-lock/pointer-lock-test-harness.js
LayoutTests/pointer-lock/bug90391-move-then-window-open-crash-expected.txt
LayoutTests/pointer-lock/bug90391-move-then-window-open-crash.html
LayoutTests/pointer-lock/lock-already-locked-expected.txt
LayoutTests/pointer-lock/lock-already-locked.html
LayoutTests/pointer-lock/lock-element-not-in-dom-expected.txt
LayoutTests/pointer-lock/lock-element-not-in-dom.html
LayoutTests/pointer-lock/locked-element-iframe-removed-from-dom-expected.txt
LayoutTests/pointer-lock/locked-element-iframe-removed-from-dom.html
LayoutTests/pointer-lock/locked-element-removed-from-dom-expected.txt
LayoutTests/pointer-lock/locked-element-removed-from-dom.html
LayoutTests/pointer-lock/mouse-event-api-expected.txt
LayoutTests/pointer-lock/mouse-event-api.html
LayoutTests/pointer-lock/mouse-event-delivery-expected.txt
LayoutTests/pointer-lock/mouse-event-delivery.html
LayoutTests/pointer-lock/pointer-lock-api-expected.txt
LayoutTests/pointer-lock/pointer-lock-api.html
LayoutTests/pointer-lock/pointerlockchange-event-on-lock-lost-expected.txt
LayoutTests/pointer-lock/pointerlockchange-event-on-lock-lost.html
LayoutTests/pointer-lock/pointerlockchange-pointerlockerror-events-expected.txt
LayoutTests/pointer-lock/pointerlockchange-pointerlockerror-events.html
LayoutTests/pointer-lock/pointerlockelement-null-when-pending-expected.txt
LayoutTests/pointer-lock/pointerlockelement-null-when-pending.html

index 7845a8f..d481f07 100644 (file)
@@ -1,3 +1,58 @@
+2014-07-08  Alex Christensen  <achristensen@webkit.org>
+
+        Remove webkit prefix from pointer lock tests.
+        https://bugs.webkit.org/show_bug.cgi?id=134744
+
+        Reviewed by Brady Eidson.
+
+        * http/tests/pointer-lock/iframe-sandboxed-allow-pointer-lock-expected.txt:
+        * http/tests/pointer-lock/iframe-sandboxed-allow-pointer-lock.html:
+        * http/tests/pointer-lock/iframe-sandboxed-expected.txt:
+        * http/tests/pointer-lock/iframe-sandboxed-nested-allow-pointer-lock-expected.txt:
+        * http/tests/pointer-lock/iframe-sandboxed-nested-allow-pointer-lock.html:
+        * http/tests/pointer-lock/iframe-sandboxed-nested-disallow-then-allow-pointer-lock-expected.txt:
+        * http/tests/pointer-lock/iframe-sandboxed-nested-disallow-then-allow-pointer-lock.html:
+        * http/tests/pointer-lock/iframe-sandboxed.html:
+        * http/tests/pointer-lock/pointerlockelement-different-origin-expected.txt:
+        * http/tests/pointer-lock/pointerlockelement-different-origin.html:
+        * http/tests/pointer-lock/pointerlockelement-same-origin-expected.txt:
+        * http/tests/pointer-lock/pointerlockelement-same-origin.html:
+        * http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents-expected.txt:
+        * http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents.html:
+        * http/tests/resources/pointer-lock/iframe-common.js:
+        (document.onpointerlockchange):
+        (document.onpointerlockerror):
+        (document.onwebkitpointerlockchange): Deleted.
+        (document.onwebkitpointerlockerror): Deleted.
+        * http/tests/resources/pointer-lock/pointer-lock-test-harness.js:
+        (expectOnlyChangeEvent):
+        (expectOnlyErrorEvent):
+        (expectNoEvents):
+        * pointer-lock/bug90391-move-then-window-open-crash-expected.txt:
+        * pointer-lock/bug90391-move-then-window-open-crash.html:
+        * pointer-lock/lock-already-locked-expected.txt:
+        * pointer-lock/lock-already-locked.html:
+        * pointer-lock/lock-element-not-in-dom-expected.txt:
+        * pointer-lock/lock-element-not-in-dom.html:
+        * pointer-lock/locked-element-iframe-removed-from-dom-expected.txt:
+        * pointer-lock/locked-element-iframe-removed-from-dom.html:
+        * pointer-lock/locked-element-removed-from-dom-expected.txt:
+        * pointer-lock/locked-element-removed-from-dom.html:
+        * pointer-lock/mouse-event-api-expected.txt:
+        * pointer-lock/mouse-event-api.html:
+        * pointer-lock/mouse-event-delivery-expected.txt:
+        * pointer-lock/mouse-event-delivery.html:
+        * pointer-lock/pointer-lock-api-expected.txt:
+        * pointer-lock/pointer-lock-api.html:
+        * pointer-lock/pointerlockchange-event-on-lock-lost-expected.txt:
+        * pointer-lock/pointerlockchange-event-on-lock-lost.html:
+        * pointer-lock/pointerlockchange-pointerlockerror-events-expected.txt:
+        * pointer-lock/pointerlockchange-pointerlockerror-events.html:
+        * pointer-lock/pointerlockelement-null-when-pending-expected.txt:
+        * pointer-lock/pointerlockelement-null-when-pending.html:
+        Remove webkit prefix on pointer lock functions and events.
+        This should have been done in r170585.
+
 2014-07-08  Bem Jones-Bey  <bjonesbe@adobe.com>
 
         Ensure we compute the height of replaced elements to 'auto' when appropriate.
index 7143afe..c22acc9 100644 (file)
@@ -3,7 +3,7 @@ Test sandboxed iframe with allow-pointer-lock allows pointer lock.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS message is "inner-iframe.html onwebkitpointerlockchange, document.webkitPointerLockElement = [object HTMLBodyElement]"
+PASS message is "inner-iframe.html onpointerlockchange, document.pointerLockElement = [object HTMLBodyElement]"
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 4ffdbb7..a079900 100644 (file)
 
     todo = [
       function () {
-          iframe.contentWindow.postMessage(["eval", 'document.body.webkitRequestPointerLock()'], "*");
+          iframe.contentWindow.postMessage(["eval", 'document.body.requestPointerLock()'], "*");
           window.onmessage = function (messageEvent) {
               message = messageEvent.data;
-              shouldBeEqualToString("message", "inner-iframe.html onwebkitpointerlockchange, document.webkitPointerLockElement = [object HTMLBodyElement]");
+              shouldBeEqualToString("message", "inner-iframe.html onpointerlockchange, document.pointerLockElement = [object HTMLBodyElement]");
               window.onmessage = null;
               doNextStep();
           }
index fa255fd..567ad04 100644 (file)
@@ -4,7 +4,7 @@ Test sandboxed iframe blocks pointer lock.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS message is "inner-iframe.html onwebkitpointerlockerror"
+PASS message is "inner-iframe.html onpointerlockerror"
 PASS successfullyParsed is true
 
 TEST COMPLETE
index b4a7cfa..a047fc5 100644 (file)
@@ -3,7 +3,7 @@ Test nested sandboxed iframes with allow-pointer-lock allow pointer lock.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS message is "inner-iframe.html onwebkitpointerlockchange, document.webkitPointerLockElement = [object HTMLBodyElement]"
+PASS message is "inner-iframe.html onpointerlockchange, document.pointerLockElement = [object HTMLBodyElement]"
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 8c353c5..4a33c1b 100644 (file)
 
     todo = [
       function () {
-          iframe.contentWindow.postMessage(["pass message down", "eval", 'document.body.webkitRequestPointerLock()'], "*");
+          iframe.contentWindow.postMessage(["pass message down", "eval", 'document.body.requestPointerLock()'], "*");
           window.onmessage = function (messageEvent) {
               message = messageEvent.data;
-              shouldBeEqualToString("message", "inner-iframe.html onwebkitpointerlockchange, document.webkitPointerLockElement = [object HTMLBodyElement]");
+              shouldBeEqualToString("message", "inner-iframe.html onpointerlockchange, document.pointerLockElement = [object HTMLBodyElement]");
               window.onmessage = null;
               doNextStep();
           }
index 8db4cfe..fbf3784 100644 (file)
@@ -4,7 +4,7 @@ Test nested sandboxed iframes without and then with allow-pointer-lock disallow
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS message is "inner-iframe.html onwebkitpointerlockerror"
+PASS message is "inner-iframe.html onpointerlockerror"
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 4cc36b1..81db307 100644 (file)
 
     todo = [
       function () {
-          iframe.contentWindow.postMessage(["pass message down", "eval", 'document.body.webkitRequestPointerLock()'], "*");
+          iframe.contentWindow.postMessage(["pass message down", "eval", 'document.body.requestPointerLock()'], "*");
           window.onmessage = function (messageEvent) {
               message = messageEvent.data;
-              shouldBeEqualToString("message", "inner-iframe.html onwebkitpointerlockerror");
+              shouldBeEqualToString("message", "inner-iframe.html onpointerlockerror");
               window.onmessage = null;
               doNextStep();
           }
index 3fa6925..cb8b04c 100644 (file)
 
     todo = [
       function () {
-          iframe.contentWindow.postMessage(["eval", 'document.body.webkitRequestPointerLock()'], "*");
+          iframe.contentWindow.postMessage(["eval", 'document.body.requestPointerLock()'], "*");
           window.onmessage = function (messageEvent) {
               message = messageEvent.data;
-              shouldBeEqualToString("message", "inner-iframe.html onwebkitpointerlockerror");
+              shouldBeEqualToString("message", "inner-iframe.html onpointerlockerror");
               window.onmessage = null;
               doNextStep();
           }
index fa1e3f7..d950246 100644 (file)
@@ -1,12 +1,12 @@
-Test iframe from different origin can not access webkitPointerLockElement.
+Test iframe from different origin can not access pointerLockElement.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
      Lock targetDiv1.
-PASS onwebkitpointerlockchange received after: Lock targetDiv1.
-PASS document.webkitPointerLockElement is targetDiv1
-PASS message is "inner-iframe.html document.webkitPointerLockElement = null"
+PASS onpointerlockchange received after: Lock targetDiv1.
+PASS document.pointerLockElement is targetDiv1
+PASS message is "inner-iframe.html document.pointerLockElement = null"
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 1571886..d19e763 100644 (file)
@@ -10,7 +10,7 @@
   <iframe src="http://localhost:8080/resources/pointer-lock/inner-iframe.html" onload="doNextStepWithUserGesture()"></iframe>
 </div>
 <script>
-    description("Test iframe from different origin can not access webkitPointerLockElement.")
+    description("Test iframe from different origin can not access pointerLockElement.")
     window.jsTestIsAsync = true;
 
     targetDiv1 = document.getElementById("target1");
     todo = [
       function () {
           expectOnlyChangeEvent("Lock targetDiv1.");
-          targetDiv1.webkitRequestPointerLock();
+          targetDiv1.requestPointerLock();
           // doNextStep called by event handler.
       },
       function () {
-          shouldBe("document.webkitPointerLockElement", "targetDiv1");
+          shouldBe("document.pointerLockElement", "targetDiv1");
           doNextStep();
       },
       function () {
-          iframe.contentWindow.postMessage(["eval", 'parent.postMessage(thisFileName() + " document.webkitPointerLockElement = " + document.webkitPointerLockElement, "*")'], "*");
+          iframe.contentWindow.postMessage(["eval", 'parent.postMessage(thisFileName() + " document.pointerLockElement = " + document.pointerLockElement, "*")'], "*");
           window.onmessage = function (messageEvent) {
               message = messageEvent.data;
-              shouldBeEqualToString("message", "inner-iframe.html document.webkitPointerLockElement = null");
+              shouldBeEqualToString("message", "inner-iframe.html document.pointerLockElement = null");
               window.onmessage = null;
               doNextStep();
           }
index 21d0616..4663e9e 100644 (file)
@@ -1,12 +1,12 @@
-Test iframe from same origin can not access webkitPointerLockElement.
+Test iframe from same origin can not access pointerLockElement.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
      Lock targetDiv1.
-PASS onwebkitpointerlockchange received after: Lock targetDiv1.
-PASS document.webkitPointerLockElement is targetDiv1
-PASS message is "inner-iframe.html document.webkitPointerLockElement = null"
+PASS onpointerlockchange received after: Lock targetDiv1.
+PASS document.pointerLockElement is targetDiv1
+PASS message is "inner-iframe.html document.pointerLockElement = null"
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 2d71687..9a70c28 100644 (file)
@@ -10,7 +10,7 @@
   <iframe src="../resources/pointer-lock/inner-iframe.html" onload="doNextStepWithUserGesture()"></iframe>
 </div>
 <script>
-    description("Test iframe from same origin can not access webkitPointerLockElement.")
+    description("Test iframe from same origin can not access pointerLockElement.")
     window.jsTestIsAsync = true;
 
     targetDiv1 = document.getElementById("target1");
     todo = [
       function () {
           expectOnlyChangeEvent("Lock targetDiv1.");
-          targetDiv1.webkitRequestPointerLock();
+          targetDiv1.requestPointerLock();
           // doNextStep called by event handler.
       },
       function () {
-          shouldBe("document.webkitPointerLockElement", "targetDiv1");
+          shouldBe("document.pointerLockElement", "targetDiv1");
           doNextStep();
       },
       function () {
-          iframe.contentWindow.postMessage(["eval", 'parent.postMessage(thisFileName() + " document.webkitPointerLockElement = " + document.webkitPointerLockElement, "*")'], "*");
+          iframe.contentWindow.postMessage(["eval", 'parent.postMessage(thisFileName() + " document.pointerLockElement = " + document.pointerLockElement, "*")'], "*");
           window.onmessage = function (messageEvent) {
               message = messageEvent.data;
-              shouldBeEqualToString("message", "inner-iframe.html document.webkitPointerLockElement = null");
+              shouldBeEqualToString("message", "inner-iframe.html document.pointerLockElement = null");
               window.onmessage = null;
               doNextStep();
           }
index e81ddc4..72f225f 100644 (file)
@@ -4,9 +4,9 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 
      Lock targetDiv1.
-PASS onwebkitpointerlockchange received after: Lock targetDiv1.
-PASS document.webkitPointerLockElement is targetDiv1
-PASS message is "inner-iframe.html onwebkitpointerlockerror"
+PASS onpointerlockchange received after: Lock targetDiv1.
+PASS document.pointerLockElement is targetDiv1
+PASS message is "inner-iframe.html onpointerlockerror"
 PASS successfullyParsed is true
 
 TEST COMPLETE
index f82ac2b..1b334f6 100644 (file)
     todo = [
       function () {
           expectOnlyChangeEvent("Lock targetDiv1.");
-          targetDiv1.webkitRequestPointerLock();
+          targetDiv1.requestPointerLock();
           // doNextStep called by event handler.
       },
       function () {
-          shouldBe("document.webkitPointerLockElement", "targetDiv1");
+          shouldBe("document.pointerLockElement", "targetDiv1");
           doNextStep();
       },
       function () {
-          iframe.contentWindow.postMessage(["eval", 'document.body.webkitRequestPointerLock()'], "*");
+          iframe.contentWindow.postMessage(["eval", 'document.body.requestPointerLock()'], "*");
           window.onmessage = function (messageEvent) {
               message = messageEvent.data;
-              shouldBeEqualToString("message", "inner-iframe.html onwebkitpointerlockerror");
+              shouldBeEqualToString("message", "inner-iframe.html onpointerlockerror");
               window.onmessage = null;
               doNextStep();
           }
       },
       function () {
-          iframe.contentWindow.postMessage(["eval", 'document.webkitExitPointerLock()'], "*");
+          iframe.contentWindow.postMessage(["eval", 'document.exitPointerLock()'], "*");
           window.onmessage = function (messageEvent) {
-              testFailed("webkitExitPointerLock from a document that doesn't have a lock caused an event " + messageEvent.data);
+              testFailed("exitPointerLock from a document that doesn't have a lock caused an event " + messageEvent.data);
               finishJSTest();
           }
           doNextStep();
index 2190747..5562484 100644 (file)
@@ -18,10 +18,10 @@ window.onmessage = function (messageEvent) {
     }
 }
 
-document.onwebkitpointerlockchange = function () {
-    parent.postMessage(thisFileName() + " onwebkitpointerlockchange, document.webkitPointerLockElement = " + document.webkitPointerLockElement, "*");
+document.onpointerlockchange = function () {
+    parent.postMessage(thisFileName() + " onpointerlockchange, document.pointerLockElement = " + document.pointerLockElement, "*");
 }
 
-document.onwebkitpointerlockerror = function () {
-    parent.postMessage(thisFileName() + " onwebkitpointerlockerror", "*");
+document.onpointerlockerror = function () {
+    parent.postMessage(thisFileName() + " onpointerlockerror", "*");
 }
index 09dba40..03b684a 100644 (file)
@@ -68,21 +68,21 @@ function eventExpected(eventHandlerName, message, expectedCalls, targetHanderNod
 function expectOnlyChangeEvent(message, targetDocument) {
     debug("     " + message);
     targetDocument = targetDocument !== undefined ? targetDocument : document;
-    eventExpected("onwebkitpointerlockchange", message, 1, targetDocument);
-    eventExpected("onwebkitpointerlockerror", message, 0, targetDocument);
+    eventExpected("onpointerlockchange", message, 1, targetDocument);
+    eventExpected("onpointerlockerror", message, 0, targetDocument);
 };
 
 function expectOnlyErrorEvent(message, targetDocument) {
     debug("     " + message);
     targetDocument = targetDocument !== undefined ? targetDocument : document;
-    eventExpected("onwebkitpointerlockchange", message, 0, targetDocument);
-    eventExpected("onwebkitpointerlockerror", message, 1, targetDocument);
+    eventExpected("onpointerlockchange", message, 0, targetDocument);
+    eventExpected("onpointerlockerror", message, 1, targetDocument);
 };
 
 function expectNoEvents(message, targetDocument) {
     debug("     " + message);
     targetDocument = targetDocument !== undefined ? targetDocument : document;
-    eventExpected("onwebkitpointerlockchange", message, 0, targetDocument);
-    eventExpected("onwebkitpointerlockerror", message, 0, targetDocument);
+    eventExpected("onpointerlockchange", message, 0, targetDocument);
+    eventExpected("onpointerlockerror", message, 0, targetDocument);
 };
 
index f86d150..7769c37 100644 (file)
@@ -4,7 +4,7 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 
      Locking targetdiv1.
-PASS document.onwebkitpointerlockchange event received.
+PASS document.onpointerlockchange event received.
      Sending mouse move events.
      Calling window.open.
 PASS Didn't crash
index 767b6e9..ac77341 100644 (file)
     todo = [
         function () {
             debug("     Locking targetdiv1.")
-            targetdiv1.webkitRequestPointerLock();
-            document.onwebkitpointerlockchange = function () {
-                document.onwebkitpointerlockchange = null;
-                testPassed("document.onwebkitpointerlockchange event received.");
+            targetdiv1.requestPointerLock();
+            document.onpointerlockchange = function () {
+                document.onpointerlockchange = null;
+                testPassed("document.onpointerlockchange event received.");
                 doNextStep();
             };
         },
@@ -43,7 +43,7 @@
             gc();
             window.open();
             testPassed("Didn't crash");
-            document.webkitExitPointerLock();
+            document.exitPointerLock();
             doNextStep();
         },
     ];
index 477be53..ea34843 100644 (file)
@@ -3,16 +3,16 @@ Test calling lock when already in a locked state.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS document.webkitPointerLockElement is null
+PASS document.pointerLockElement is null
      Locking targetdiv1.
-PASS document.onwebkitpointerlockchange event received.
-PASS document.webkitPointerLockElement is targetdiv1
+PASS document.onpointerlockchange event received.
+PASS document.pointerLockElement is targetdiv1
      Locking targetdiv1, again.
-PASS document.onwebkitpointerlockchange event received.
-PASS document.webkitPointerLockElement is targetdiv1
+PASS document.onpointerlockchange event received.
+PASS document.pointerLockElement is targetdiv1
      Locking targetdiv2.
-PASS document.onwebkitpointerlockchange event received.
-PASS document.webkitPointerLockElement is targetdiv2
+PASS document.onpointerlockchange event received.
+PASS document.pointerLockElement is targetdiv2
 PASS successfullyParsed is true
 
 TEST COMPLETE
index dbf113e..986af23 100644 (file)
 
     // Expect change event only for all transitions below.
     expectedTargetToBeLockedString = "";
-    document.onwebkitpointerlockchange = function ()
+    document.onpointerlockchange = function ()
         {
-            testPassed("document.onwebkitpointerlockchange event received.");
-            shouldBe("document.webkitPointerLockElement", expectedTargetToBeLockedString);
+            testPassed("document.onpointerlockchange event received.");
+            shouldBe("document.pointerLockElement", expectedTargetToBeLockedString);
             doNextStepWithUserGesture();
         };
-    document.onwebkitpointerlockerror =
-        function () { testFailed("document.onwebkitpointerlockerror event received."); finishJSTest(); };
+    document.onpointerlockerror =
+        function () { testFailed("document.onpointerlockerror event received."); finishJSTest(); };
 
     var expectTarget1Unlock = false;
-    targetdiv1.addEventListener("webkitpointerlocklost",
+    targetdiv1.addEventListener("pointerlocklost",
         function () { shouldBe("expectTarget1Unlock", "true"); });
 
     var expectTarget2Unlock = false;
-    targetdiv2.addEventListener("webkitpointerlocklost",
+    targetdiv2.addEventListener("pointerlocklost",
         function () { shouldBe("expectTarget2Unlock", "true"); });
 
     todo = [
         function () {
-            shouldBe("document.webkitPointerLockElement", "null");
+            shouldBe("document.pointerLockElement", "null");
             debug("     Locking targetdiv1.")
-            targetdiv1.webkitRequestPointerLock();
+            targetdiv1.requestPointerLock();
             expectedTargetToBeLockedString = "targetdiv1";
-            // doNextStep() called by onwebkitpointerlockchange handler.
+            // doNextStep() called by onpointerlockchange handler.
         },
         function () {
             debug("     Locking targetdiv1, again.")
-            targetdiv1.webkitRequestPointerLock();
+            targetdiv1.requestPointerLock();
             expectedTargetToBeLockedString = "targetdiv1";
-            // doNextStep() called by onwebkitpointerlockchange handler.
+            // doNextStep() called by onpointerlockchange handler.
         },
         function () {
             debug("     Locking targetdiv2.")
             expectTarget1Unlock = true;
-            targetdiv2.webkitRequestPointerLock();
+            targetdiv2.requestPointerLock();
             expectedTargetToBeLockedString = "targetdiv2";
-            // doNextStep() called by onwebkitpointerlockchange handler.
+            // doNextStep() called by onpointerlockchange handler.
         },
     ];
     doNextStepWithUserGesture();
index adc0438..227448e 100644 (file)
@@ -6,7 +6,7 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 PASS targetDiv1.parentElement is not null
      Remove targetDiv1 from document, and try to lock it.
 PASS targetDiv1.parentElement is null
-PASS onwebkitpointerlockerror received after: Remove targetDiv1 from document, and try to lock it.
+PASS onpointerlockerror received after: Remove targetDiv1 from document, and try to lock it.
 PASS successfullyParsed is true
 
 TEST COMPLETE
index acb7358..6e6e76c 100644 (file)
@@ -20,7 +20,7 @@
             expectOnlyErrorEvent("Remove targetDiv1 from document, and try to lock it.");
             targetDiv1.parentElement.removeChild(targetDiv1);
             shouldBe("targetDiv1.parentElement", "null");
-            targetDiv1.webkitRequestPointerLock();
+            targetDiv1.requestPointerLock();
             // doNextStep called by event handler.
         },
     ];
index c9da65c..dc0d019 100644 (file)
@@ -5,13 +5,13 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
      Lock target in iframe. (main document handler)
      Lock target in iframe. (iframe handler)
-PASS onwebkitpointerlockchange received after: Lock target in iframe. (iframe handler)
-PASS targetIframe1.contentDocument.webkitPointerLockElement is targetDiv1
+PASS onpointerlockchange received after: Lock target in iframe. (iframe handler)
+PASS targetIframe1.contentDocument.pointerLockElement is targetDiv1
 PASS targetDiv1.parentElement.parentElement is targetIframe1.contentDocument.body
      Remove iframe & immediately lock target2. (main document handler)
      Remove iframe & immediately lock target2. (iframe handler)
-PASS document.webkitPointerLockElement is null
-PASS onwebkitpointerlockchange received after: Remove iframe & immediately lock target2. (main document handler)
+PASS document.pointerLockElement is null
+PASS onpointerlockchange received after: Remove iframe & immediately lock target2. (main document handler)
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 01f59ee..c8a0e4c 100644 (file)
             targetDiv1 = targetIframe1.contentDocument.body.firstChild.firstChild
             expectNoEvents("Lock target in iframe. (main document handler)");
             expectOnlyChangeEvent("Lock target in iframe. (iframe handler)", targetIframe1.contentDocument);
-            targetDiv1.webkitRequestPointerLock();
+            targetDiv1.requestPointerLock();
             // doNextStep called by event handler.
         },
         function () {
-            shouldBe("targetIframe1.contentDocument.webkitPointerLockElement", "targetDiv1");
+            shouldBe("targetIframe1.contentDocument.pointerLockElement", "targetDiv1");
             shouldBe("targetDiv1.parentElement.parentElement", "targetIframe1.contentDocument.body");
             expectOnlyChangeEvent("Remove iframe & immediately lock target2. (main document handler)");
             expectNoEvents("Remove iframe & immediately lock target2. (iframe handler)", targetIframe1.contentDocument);
             targetIframe1.parentElement.removeChild(targetIframe1);
-            targetDiv2.webkitRequestPointerLock();
-            shouldBe("document.webkitPointerLockElement", "null");
+            targetDiv2.requestPointerLock();
+            shouldBe("document.pointerLockElement", "null");
             // doNextStep called by event handler.
         },
     ];
index f88d519..3234ba3 100644 (file)
@@ -5,15 +5,15 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
      Lock target in iframe. (main document handler).
      Lock target in iframe. (iframe handler)
-PASS onwebkitpointerlockchange received after: Lock target in iframe. (iframe handler)
-PASS targetIframe1.contentDocument.webkitPointerLockElement is targetDiv1
+PASS onpointerlockchange received after: Lock target in iframe. (iframe handler)
+PASS targetIframe1.contentDocument.pointerLockElement is targetDiv1
 PASS targetDiv1.parentElement.parentElement is targetIframe1.contentDocument.body
      Remove targetDiv1's parent from iframe & immediately lock target2. (main document handler)
      Remove targetDiv1's parent from iframe & immediately lock target2. (iframe handler)
-PASS document.webkitPointerLockElement is null
+PASS document.pointerLockElement is null
 PASS targetDiv1.parentElement.parentElement is null
-PASS onwebkitpointerlockerror received after: Remove targetDiv1's parent from iframe & immediately lock target2. (main document handler)
-PASS onwebkitpointerlockchange received after: Remove targetDiv1's parent from iframe & immediately lock target2. (iframe handler)
+PASS onpointerlockerror received after: Remove targetDiv1's parent from iframe & immediately lock target2. (main document handler)
+PASS onpointerlockchange received after: Remove targetDiv1's parent from iframe & immediately lock target2. (iframe handler)
 PASS successfullyParsed is true
 
 TEST COMPLETE
index d6342e4..9979a84 100644 (file)
             targetDiv1 = targetIframe1.contentDocument.body.firstChild.firstChild
             expectNoEvents("Lock target in iframe. (main document handler).");
             expectOnlyChangeEvent("Lock target in iframe. (iframe handler)", targetIframe1.contentDocument);
-            targetDiv1.webkitRequestPointerLock();
+            targetDiv1.requestPointerLock();
             // doNextStep called by event handler.
         },
         function () {
-            shouldBe("targetIframe1.contentDocument.webkitPointerLockElement", "targetDiv1");
+            shouldBe("targetIframe1.contentDocument.pointerLockElement", "targetDiv1");
             shouldBe("targetDiv1.parentElement.parentElement", "targetIframe1.contentDocument.body");
             expectOnlyErrorEvent("Remove targetDiv1's parent from iframe & immediately lock target2. (main document handler)");
             expectOnlyChangeEvent("Remove targetDiv1's parent from iframe & immediately lock target2. (iframe handler)", targetIframe1.contentDocument);
             targetDiv1.parentElement.parentElement.removeChild(targetDiv1.parentElement);
-            targetDiv2.webkitRequestPointerLock();
-            shouldBe("document.webkitPointerLockElement", "null");
+            targetDiv2.requestPointerLock();
+            shouldBe("document.pointerLockElement", "null");
             shouldBe("targetDiv1.parentElement.parentElement", "null");
             // doNextStep called by event handler.
         },
index 3542f66..143a0f2 100644 (file)
@@ -1,5 +1,5 @@
-PASS mouseEvent.webkitMovementX is defined.
-PASS mouseEvent.webkitMovementY is defined.
+PASS mouseEvent.movementX is defined.
+PASS mouseEvent.movementY is defined.
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 798394d..0df7dda 100644 (file)
@@ -6,8 +6,8 @@
 <body>
 <script>
     var mouseEvent = document.createEvent("MouseEvent");
-    shouldBeDefined("mouseEvent.webkitMovementX");
-    shouldBeDefined("mouseEvent.webkitMovementY");
+    shouldBeDefined("mouseEvent.movementX");
+    shouldBeDefined("mouseEvent.movementY");
 </script>
 <script src="../http/tests/resources/js-test-post.js"></script>
 </body>
index 1144d4a..7565e9f 100644 (file)
@@ -3,13 +3,13 @@ Test mouse events are routed to lock target.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS document.onwebkitpointerlockchange event received.
-PASS document.webkitPointerLockElement is targetdiv1
+PASS document.onpointerlockchange event received.
+PASS document.pointerLockElement is targetdiv1
      With a lock in place send a click.
 PASS event type: mousedown, target: target1, received on: target1
 PASS event type: mousedown, target: target1, received on: body
-PASS document.onwebkitpointerlockchange event received.
-PASS document.webkitPointerLockElement is targetdiv2
+PASS document.onpointerlockchange event received.
+PASS document.pointerLockElement is targetdiv2
      With a lock in place send a click.
 PASS event type: mousedown, target: target2, received on: target2
 PASS event type: mousedown, target: target2, received on: body
index e103307..e5b9c49 100644 (file)
 
     // Expect change event only for all transitions below.
     expectedTargetToBeLockedString = "";
-    document.onwebkitpointerlockchange = function ()
+    document.onpointerlockchange = function ()
         {
-            testPassed("document.onwebkitpointerlockchange event received.");
-            shouldBe("document.webkitPointerLockElement", expectedTargetToBeLockedString);
+            testPassed("document.onpointerlockchange event received.");
+            shouldBe("document.pointerLockElement", expectedTargetToBeLockedString);
             doNextStep();
         };
-    document.onwebkitpointerlockerror =
-        function () { testFailed("document.onwebkitpointerlockerror event received."); finishJSTest(); };
+    document.onpointerlockerror =
+        function () { testFailed("document.onpointerlockerror event received."); finishJSTest(); };
 
     function eventNotExpected(e) {
         testFailed("Unexpected event " + e.type + " on " + e.currentTarget.id);
@@ -37,9 +37,9 @@
 
     todo = [
         function () {
-            targetdiv1.webkitRequestPointerLock();
+            targetdiv1.requestPointerLock();
             expectedTargetToBeLockedString = "targetdiv1";
-            // doNextStep() called by onwebkitpointerlockchange handler.
+            // doNextStep() called by onpointerlockchange handler.
         },
         function () {
             debug("     With a lock in place send a click.")
@@ -54,9 +54,9 @@
             doNextStepWithUserGesture();
         },
         function () {
-            targetdiv2.webkitRequestPointerLock();
+            targetdiv2.requestPointerLock();
             expectedTargetToBeLockedString = "targetdiv2";
-            // doNextStep() called by onwebkitpointerlockchange handler.
+            // doNextStep() called by onpointerlockchange handler.
         },
         function () {
             debug("     With a lock in place send a click.")
index 93a3b25..1f5a48c 100644 (file)
@@ -3,11 +3,11 @@ Basic API existence test for Pointer Lock.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS document.onwebkitpointerlockchange is defined.
-PASS document.onwebkitpointerlockerror is defined.
-PASS document.webkitExitPointerLock is defined.
-PASS document.webkitPointerLockElement is null
-PASS element.webkitRequestPointerLock is defined.
+PASS document.onpointerlockchange is defined.
+PASS document.onpointerlockerror is defined.
+PASS document.exitPointerLock is defined.
+PASS document.pointerLockElement is null
+PASS element.requestPointerLock is defined.
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 0fc5e4e..e55869d 100644 (file)
@@ -7,12 +7,12 @@
 <script>
     description("Basic API existence test for Pointer Lock.")
 
-    shouldBeDefined("document.onwebkitpointerlockchange");
-    shouldBeDefined("document.onwebkitpointerlockerror");
-    shouldBeDefined("document.webkitExitPointerLock");
-    shouldEvaluateTo("document.webkitPointerLockElement", null);
+    shouldBeDefined("document.onpointerlockchange");
+    shouldBeDefined("document.onpointerlockerror");
+    shouldBeDefined("document.exitPointerLock");
+    shouldEvaluateTo("document.pointerLockElement", null);
     element = document.createElement();
-    shouldBeDefined("element.webkitRequestPointerLock");
+    shouldBeDefined("element.requestPointerLock");
 </script>
 <script src="../http/tests/resources/js-test-post.js"></script>
 </body>
index 2b9ed47..e5e4aad 100644 (file)
@@ -1,15 +1,15 @@
-Test that webkitpointerlockchange event is dispatched when lock is lost.
+Test that pointerlockchange event is dispatched when lock is lost.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
 PASS window.testRunner is defined.
      Lock targetDiv1.
-PASS onwebkitpointerlockchange received after: Lock targetDiv1.
-PASS document.webkitPointerLockElement is targetDiv1
+PASS onpointerlockchange received after: Lock targetDiv1.
+PASS document.pointerLockElement is targetDiv1
      Host initiated unlock.
-PASS onwebkitpointerlockchange received after: Host initiated unlock.
-PASS document.webkitPointerLockElement is null
+PASS onpointerlockchange received after: Host initiated unlock.
+PASS document.pointerLockElement is null
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 01df010..dcbd2bf 100644 (file)
@@ -9,7 +9,7 @@
   <div id="target1"></div>
 </div>
 <script>
-    description("Test that webkitpointerlockchange event is dispatched when lock is lost.")
+    description("Test that pointerlockchange event is dispatched when lock is lost.")
     window.jsTestIsAsync = true;
     shouldBeDefined("window.testRunner");
 
     todo = [
         function () {
             expectOnlyChangeEvent("Lock targetDiv1.");
-            targetDiv1.webkitRequestPointerLock();
+            targetDiv1.requestPointerLock();
             // doNextStep called by event handler.
         },
         function () {
-            shouldBe("document.webkitPointerLockElement", "targetDiv1");
+            shouldBe("document.pointerLockElement", "targetDiv1");
             expectOnlyChangeEvent("Host initiated unlock.");
             testRunner.didLosePointerLock();
             // doNextStep called by event handler.
         },
         function () {
-            shouldBe("document.webkitPointerLockElement", "null");
+            shouldBe("document.pointerLockElement", "null");
             doNextStep();
         },
     ];
index ab6df58..89cfcaa 100644 (file)
@@ -5,38 +5,38 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
      Unlock.
      Lock targetDiv1.
-PASS onwebkitpointerlockchange received after: Lock targetDiv1.
+PASS onpointerlockchange received after: Lock targetDiv1.
      Unlock again.
-PASS onwebkitpointerlockchange received after: Unlock again.
+PASS onpointerlockchange received after: Unlock again.
      Lock targetDiv1 again.
-PASS onwebkitpointerlockchange received after: Lock targetDiv1 again.
+PASS onpointerlockchange received after: Lock targetDiv1 again.
      Lock targetDiv2.
-PASS onwebkitpointerlockchange received after: Lock targetDiv2.
+PASS onpointerlockchange received after: Lock targetDiv2.
      Lock targetDiv2 again.
-PASS onwebkitpointerlockchange received after: Lock targetDiv2 again.
+PASS onpointerlockchange received after: Lock targetDiv2 again.
      Unlock targetDiv2.
-PASS onwebkitpointerlockchange received after: Unlock targetDiv2.
+PASS onpointerlockchange received after: Unlock targetDiv2.
      Lock targetIframe1.
      Lock targetIframe1 (handler for iframe1).
-PASS onwebkitpointerlockchange received after: Lock targetIframe1 (handler for iframe1).
+PASS onpointerlockchange received after: Lock targetIframe1 (handler for iframe1).
      Lock targetIframe2.
      Lock targetIframe2 (handler for iframe1).
      Lock targetIframe2 (handler for iframe2).
-PASS onwebkitpointerlockerror received after: Lock targetIframe2 (handler for iframe2).
+PASS onpointerlockerror received after: Lock targetIframe2 (handler for iframe2).
      Unlock targetIframe2.
      Unlock targetIframe2 (handler for iframe1).
      Unlock targetIframe2 (handler for iframe2).
-PASS onwebkitpointerlockchange received after: Unlock targetIframe2 (handler for iframe1).
+PASS onpointerlockchange received after: Unlock targetIframe2 (handler for iframe1).
 PASS testRunner.setPointerLockWillFailSynchronously is defined.
      Lock with synchronous failure.
-PASS onwebkitpointerlockerror received after: Lock with synchronous failure.
+PASS onpointerlockerror received after: Lock with synchronous failure.
 PASS testRunner.setPointerLockWillRespondAsynchronously is defined.
 PASS testRunner.didAcquirePointerLock is defined.
 PASS testRunner.didNotAcquirePointerLock is defined.
      Lock with asynchronous failure.
-PASS onwebkitpointerlockerror received after: Lock with asynchronous failure.
+PASS onpointerlockerror received after: Lock with asynchronous failure.
      Lock with asynchronous success.
-PASS onwebkitpointerlockchange received after: Lock with asynchronous success.
+PASS onpointerlockchange received after: Lock with asynchronous success.
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 7e485f9..ad3cb3f 100644 (file)
     todo = [
         function () {
             expectNoEvents("Unlock.");
-            document.webkitExitPointerLock();
+            document.exitPointerLock();
             doNextStepWithUserGesture();
         },
         function () {
             expectOnlyChangeEvent("Lock targetDiv1.");
-            targetDiv1.webkitRequestPointerLock();
+            targetDiv1.requestPointerLock();
         },
         function () {
             expectOnlyChangeEvent("Unlock again.");
-            document.webkitExitPointerLock();
+            document.exitPointerLock();
         },
         function () {
             expectOnlyChangeEvent("Lock targetDiv1 again.");
-            targetDiv1.webkitRequestPointerLock();
+            targetDiv1.requestPointerLock();
         },
         function () {
             expectOnlyChangeEvent("Lock targetDiv2.");
-            targetDiv2.webkitRequestPointerLock();
+            targetDiv2.requestPointerLock();
         },
         function () {
             expectOnlyChangeEvent("Lock targetDiv2 again.");
-            targetDiv2.webkitRequestPointerLock();
+            targetDiv2.requestPointerLock();
         },
         function () {
             expectOnlyChangeEvent("Unlock targetDiv2.");
-            document.webkitExitPointerLock();
+            document.exitPointerLock();
         },
         function () {
             targetIframe1.src = "about:blank";
         function () {
             expectNoEvents("Lock targetIframe1.");
             expectOnlyChangeEvent("Lock targetIframe1 (handler for iframe1).", targetIframe1.contentDocument);
-            targetIframe1.contentDocument.body.webkitRequestPointerLock();
+            targetIframe1.contentDocument.body.requestPointerLock();
         },
         function () {
             expectNoEvents("Lock targetIframe2.");
             expectNoEvents("Lock targetIframe2 (handler for iframe1).", targetIframe1.contentDocument);
             expectOnlyErrorEvent("Lock targetIframe2 (handler for iframe2).", targetIframe2.contentDocument);
-            targetIframe2.contentDocument.body.webkitRequestPointerLock();
+            targetIframe2.contentDocument.body.requestPointerLock();
         },
         function () {
             expectNoEvents("Unlock targetIframe2.");
             expectOnlyChangeEvent("Unlock targetIframe2 (handler for iframe1).", targetIframe1.contentDocument);
             expectNoEvents("Unlock targetIframe2 (handler for iframe2).", targetIframe2.contentDocument);
-            targetIframe1.contentDocument.webkitExitPointerLock();
+            targetIframe1.contentDocument.exitPointerLock();
         },
         function () {
             shouldBeDefined("testRunner.setPointerLockWillFailSynchronously");
             testRunner.setPointerLockWillFailSynchronously();
             expectOnlyErrorEvent("Lock with synchronous failure.");
-            targetDiv1.webkitRequestPointerLock();
+            targetDiv1.requestPointerLock();
         },
         function () {
             shouldBeDefined("testRunner.setPointerLockWillRespondAsynchronously");
@@ -87,7 +87,7 @@
             shouldBeDefined("testRunner.didNotAcquirePointerLock");
             testRunner.setPointerLockWillRespondAsynchronously();
             expectOnlyErrorEvent("Lock with asynchronous failure.");
-            targetDiv1.webkitRequestPointerLock();
+            targetDiv1.requestPointerLock();
             doNextStep();
         },
         function () {
@@ -96,7 +96,7 @@
         function () {
             testRunner.setPointerLockWillRespondAsynchronously();
             expectOnlyChangeEvent("Lock with asynchronous success.");
-            targetDiv1.webkitRequestPointerLock();
+            targetDiv1.requestPointerLock();
             doNextStep();
         },
         function () {
index 3cfbbfc..2e615c5 100644 (file)
@@ -3,15 +3,15 @@ Test pointerLockElement is null when a lock is pending.
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS document.webkitPointerLockElement is null
+PASS document.pointerLockElement is null
      Lock.
-PASS document.webkitPointerLockElement is null
-PASS onwebkitpointerlockchange received after: Lock.
-PASS document.webkitPointerLockElement is targetDiv1
+PASS document.pointerLockElement is null
+PASS onpointerlockchange received after: Lock.
+PASS document.pointerLockElement is targetDiv1
      Unlock.
-PASS document.webkitPointerLockElement is targetDiv1
-PASS onwebkitpointerlockchange received after: Unlock.
-PASS document.webkitPointerLockElement is null
+PASS document.pointerLockElement is targetDiv1
+PASS onpointerlockchange received after: Unlock.
+PASS document.pointerLockElement is null
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 7934286..893051e 100644 (file)
 
     todo = [
         function () {
-            shouldBe("document.webkitPointerLockElement", "null");
+            shouldBe("document.pointerLockElement", "null");
             testRunner.setPointerLockWillRespondAsynchronously();
             expectOnlyChangeEvent("Lock.");
-            targetDiv1.webkitRequestPointerLock();
+            targetDiv1.requestPointerLock();
             doNextStep();
         },
         function () {
-            shouldBe("document.webkitPointerLockElement", "null");
+            shouldBe("document.pointerLockElement", "null");
             testRunner.didAcquirePointerLock();
             // doNextStep called from event handler set with expect...
         },
         function () {
-            shouldBe("document.webkitPointerLockElement", "targetDiv1");
+            shouldBe("document.pointerLockElement", "targetDiv1");
             expectOnlyChangeEvent("Unlock.");
-            document.webkitExitPointerLock();
-            shouldBe("document.webkitPointerLockElement", "targetDiv1");
+            document.exitPointerLock();
+            shouldBe("document.pointerLockElement", "targetDiv1");
             // doNextStep called from event handler set with expect...
         },
         function () {
-            shouldBe("document.webkitPointerLockElement", "null");
+            shouldBe("document.pointerLockElement", "null");
             doNextStep();
         },
     ];