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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-ready-check-iframe-child-manual.html

Issue 2547023002: Import wpt@3c8896ae408c8fd594979da7c99970029e7856a7 (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/element-ready-check-iframe-child-manual.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-ready-check-iframe-child-manual.html b/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-ready-check-iframe-child-manual.html
index 0c1dd29a1e642c39c0eb5d45b3e98b23f128d9cd..ab1c261ccc8afcb10a3cf451257a99bb8dd8c601 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-ready-check-iframe-child-manual.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-ready-check-iframe-child-manual.html
@@ -6,12 +6,15 @@
<div id="log"></div>
<iframe><!-- script inserts child here --></iframe>
<script>
-async_test(function(t)
-{
- var div = document.createElement("div");
- document.querySelector("iframe").appendChild(div);
- document.onfullscreenchange = t.unreached_func("fullscreenchange event");
- document.onfullscreenerror = t.step_func_done();
- trusted_request(div, document.body);
+async_test(t => {
+ const div = document.createElement("div");
+ document.querySelector("iframe").appendChild(div);
+
+ document.onfullscreenchange = t.step_func_done(() => {
+ assert_equals(document.fullscreenElement, div);
+ });
+ document.onfullscreenerror = t.unreached_func("fullscreenerror event");
+
+ trusted_request(div, document.body);
});
</script>

Powered by Google App Engine
This is Rietveld 408576698