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

Unified Diff: third_party/WebKit/LayoutTests/fullscreen/full-screen-remove-ancestor-during-transition.html

Issue 2654083006: Revert of Sync requestFullscreen() and exitFullscreen() algorithms with the spec (Closed)
Patch Set: add failing test expectations Created 3 years, 11 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: third_party/WebKit/LayoutTests/fullscreen/full-screen-remove-ancestor-during-transition.html
diff --git a/third_party/WebKit/LayoutTests/fullscreen/full-screen-remove-ancestor-during-transition.html b/third_party/WebKit/LayoutTests/fullscreen/full-screen-remove-ancestor-during-transition.html
new file mode 100644
index 0000000000000000000000000000000000000000..735c5204d73bcb3cd90b9859d267045c7a4cd43f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fullscreen/full-screen-remove-ancestor-during-transition.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<script src="../resources/js-test.js"></script>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+function runWithKeyDown(fn)
+{
+ document.addEventListener('keydown', function() { fn(); }, false);
+ if (window.testRunner) {
+ eventSender.keyDown('a');
+ }
+}
+
+function init() {
+ runWithKeyDown(goFullScreen);
+}
+
+function goFullScreen() {
+ var iframe = document.getElementById('block1');
+ var element = iframe.contentDocument.documentElement;
+ setTimeout(function () {
+ iframe.parentNode.removeChild(iframe);
+ gc();
+ setTimeout(function () {
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ }, 0);
+ }, 0);
+ element.webkitRequestFullScreen();
+ shouldNotBe("document.webkitFullscreenElement", "null");
+}
+</script>
+<body onload="init()">
+ <iframe allowfullscreen src="resources/inner.html" id="block1"></iframe>
+ PASS
+</body>

Powered by Google App Engine
This is Rietveld 408576698