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

Unified Diff: LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents-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, 5 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-prefixed.html
diff --git a/LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents-prefixed.html b/LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents-prefixed.html
deleted file mode 100644
index d088f526ec2eaa17901ef30e66ce65df847aa722..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/pointer-lock/requestPointerLock-can-not-transfer-between-documents-prefixed.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<script src="/js-test-resources/js-test.js"></script>
-<script src="../resources/pointer-lock/pointer-lock-test-harness-prefixed.js"></script>
-</head>
-<body>
-<div>
- <div id="target1"></div>
- <iframe src="../resources/pointer-lock/inner-iframe-prefixed.html" onload="doNextStepWithUserGesture()"></iframe>
-</div>
-<script>
- description("Test iframe from same origin can not transfer pointer lock across documents.")
- window.jsTestIsAsync = true;
-
- targetDiv1 = document.getElementById("target1");
- iframe = document.getElementsByTagName("iframe")[0];
-
- todo = [
- function () {
- expectOnlyChangeEvent("Lock targetDiv1.");
- targetDiv1.webkitRequestPointerLock();
- // doNextStep called by event handler.
- },
- function () {
- shouldBe("document.webkitPointerLockElement", "targetDiv1");
- doNextStep();
- },
- function () {
- iframe.contentWindow.postMessage(["eval", 'document.body.webkitRequestPointerLock()'], "*");
- window.onmessage = function (messageEvent) {
- message = messageEvent.data;
- shouldBeEqualToString("message", "inner-iframe-prefixed.html onwebkitpointerlockerror");
- window.onmessage = null;
- doNextStep();
- }
- },
- function () {
- iframe.contentWindow.postMessage(["eval", 'document.webkitExitPointerLock()'], "*");
- window.onmessage = function (messageEvent) {
- testFailed("webkitExitPointerLock from a document that doesn't have a lock caused an event " + messageEvent.data);
- finishJSTest();
- }
- doNextStep();
- },
- ];
- // doNextStep() called by iframe onload handler.
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698