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

Unified Diff: third_party/WebKit/LayoutTests/fullscreen/api/document-fullscreen-element.html

Issue 2573773002: Sync requestFullscreen() and exitFullscreen() algorithms with the spec (Closed)
Patch Set: address feedback Created 4 years 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/api/document-fullscreen-element.html
diff --git a/third_party/WebKit/LayoutTests/fullscreen/api/document-fullscreen-element.html b/third_party/WebKit/LayoutTests/fullscreen/api/document-fullscreen-element.html
deleted file mode 100644
index f339c0bd384c732dbcd456bd892a2a2de1e1d182..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fullscreen/api/document-fullscreen-element.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<title>Document.fullscreenElement</title>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script src="../trusted-click.js"></script>
-<div id="log"></div>
-<script>
-async_test(function(t)
-{
- var div = document.querySelector("div");
-
- document.onfullscreenchange = t.step_func(function()
- {
- assert_equals(document.fullscreenElement, div, "fullscreenElement before exitFullscreen()");
- document.exitFullscreen();
- // TODO(foolip): fullscreenElement should still be div.
- // https://crbug.com/402421
- assert_equals(document.fullscreenElement, null, "fullscreenElement after exitFullscreen()");
-
- document.onfullscreenchange = t.step_func(function()
- {
- assert_equals(document.fullscreenElement, null, "fullscreenElement after exiting fullscreen");
- t.done();
- });
- });
-
- trusted_click(t.step_func(function()
- {
- assert_equals(document.fullscreenElement, null, "fullscreenElement before requestFullscreen()");
- div.requestFullscreen();
- // TODO(foolip): fullscreenElement should still be null.
- // https://crbug.com/402421
- assert_equals(document.fullscreenElement, div, "fullscreenElement after requestFullscreen()");
- }), document.body);
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698