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

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

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. Created 3 years, 10 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/external/wpt/fullscreen/api/document-fullscreen-enabled.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled.html b/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled.html
index ce9556b57b9887734ca70e418d173d7415c31e24..8c7057b430cc5125e5905116cc3d2fa57b452e3b 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/document-fullscreen-enabled.html
@@ -3,23 +3,15 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
-<iframe src="blank.html"></iframe>
-<iframe allowfullscreen src="blank.html"></iframe>
+<iframe></iframe>
+<iframe allowfullscreen></iframe>
<script>
-async_test(function(t)
+test(function()
{
assert_true(document.fullscreenEnabled, "top-level document");
var iframes = document.getElementsByTagName("iframe");
-
- var loaded = 0;
- iframes[0].onload = t.step_func(function() {
- assert_false(iframes[0].contentDocument.fullscreenEnabled, "iframe without allowfullscreen");
- if (++loaded == 2) t.done();
- });
- iframes[1].onload = t.step_func(function() {
- assert_true(iframes[1].contentDocument.fullscreenEnabled, "iframe with allowfullscreen");
- if (++loaded == 2) t.done();
- });
+ assert_false(iframes[0].contentDocument.fullscreenEnabled, "iframe without allowfullscreen");
+ assert_true(iframes[1].contentDocument.fullscreenEnabled, "iframe with allowfullscreen");
});
</script>

Powered by Google App Engine
This is Rietveld 408576698