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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/document-fullscreen-enabled-active-document.html

Issue 2579783002: Import wpt@9c292953722dee25858a667417d2502ed418f235 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. 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/imported/wpt/fullscreen/api/document-fullscreen-enabled-active-document.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/document-fullscreen-enabled-active-document.html b/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/document-fullscreen-enabled-active-document.html
new file mode 100644
index 0000000000000000000000000000000000000000..4b22cfd3ca5ec4d84bb607a878499e9e952d9480
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/document-fullscreen-enabled-active-document.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<title>Document.fullscreenEnabled when the document is not the active document</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id="log"></div>
+<iframe allowfullscreen></iframe>
+<script>
+var t = async_test();
+
+onload = t.step_func(() => {
+ var iframe = document.querySelector("iframe");
+ var documentBeforeNav = iframe.contentDocument;
+
+ iframe.onload = t.step_func_done(() => {
+ assert_false(documentBeforeNav.fullscreenEnabled);
+ });
+
+ // Navigate the iframe
+ window[0].location.href = '/common/blank.html';
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698