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

Unified Diff: LayoutTests/pointer-lock/locked-element-iframe-removed-from-dom-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/pointer-lock/locked-element-iframe-removed-from-dom-prefixed.html
diff --git a/LayoutTests/pointer-lock/locked-element-iframe-removed-from-dom-prefixed.html b/LayoutTests/pointer-lock/locked-element-iframe-removed-from-dom-prefixed.html
deleted file mode 100644
index 0ede42e1977adc36030e0f52566b94838b2c598c..0000000000000000000000000000000000000000
--- a/LayoutTests/pointer-lock/locked-element-iframe-removed-from-dom-prefixed.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<script src="../resources/js-test.js"></script>
-<script src="../http/tests/resources/pointer-lock/pointer-lock-test-harness-prefixed.js"></script>
-</head>
-<body>
-<div>
- <iframe id="iframe1"></iframe>
- <div id="target2"></div>
-</div>
-<script>
- description("Test removing an iframe containing a locked element causes lock to be released.")
- window.jsTestIsAsync = true;
-
- targetIframe1 = document.getElementById("iframe1");
- targetDiv2 = document.getElementById("target2");
-
- todo = [
- function () {
- // Load a blank iframe.
- targetIframe1.src = "about:blank";
- targetIframe1.onload = function () { doNextStepWithUserGesture(); }
- },
- function () {
- // Nest target element into iframe document.
- targetIframe1.contentDocument.body.innerHTML ="<div><div></div></div>";
- 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();
- // doNextStep called by event handler.
- },
- function () {
- shouldBe("targetIframe1.contentDocument.webkitPointerLockElement", "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");
- // doNextStep called by event handler.
- },
- ];
- doNextStep();
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698