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

Unified Diff: LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents.html

Issue 279313003: Create Document exitPointerLock and pointerLockElement API methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: merge 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents.html
diff --git a/LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents.html b/LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents.html
index 003e6b2c2eaf60aa979db5cca406951b4a03a137..d82b0716920792eaf2f1d19f3e9ea91b9364a832 100644
--- a/LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents.html
+++ b/LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents.html
@@ -19,15 +19,15 @@
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 onpointerlockerror");
@@ -36,9 +36,9 @@
}
},
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();

Powered by Google App Engine
This is Rietveld 408576698