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

Unified Diff: LayoutTests/http/tests/pointer-lock/pointerlockelement-same-origin.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/pointerlockelement-same-origin.html
diff --git a/LayoutTests/http/tests/pointer-lock/pointerlockelement-same-origin.html b/LayoutTests/http/tests/pointer-lock/pointerlockelement-same-origin.html
index 4e000680e6adcd2d0980103faf61d90a35e80614..641b78b6ea7267768c3477978cf3113b6adacc96 100644
--- a/LayoutTests/http/tests/pointer-lock/pointerlockelement-same-origin.html
+++ b/LayoutTests/http/tests/pointer-lock/pointerlockelement-same-origin.html
@@ -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");
@@ -19,18 +19,18 @@
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();
}

Powered by Google App Engine
This is Rietveld 408576698