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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Element ready check for child of iframe</title> 2 <title>Element ready check for child of iframe</title>
3 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script> 4 <script src="/resources/testharnessreport.js"></script>
5 <script src="../trusted-click.js"></script> 5 <script src="../trusted-click.js"></script>
6 <div id="log"></div> 6 <div id="log"></div>
7 <iframe><!-- script inserts child here --></iframe> 7 <iframe><!-- script inserts child here --></iframe>
8 <script> 8 <script>
9 async_test(function(t) 9 async_test(t => {
10 { 10 const div = document.createElement("div");
11 var div = document.createElement("div"); 11 document.querySelector("iframe").appendChild(div);
12 document.querySelector("iframe").appendChild(div); 12
13 document.onfullscreenchange = t.unreached_func("fullscreenchange event"); 13 document.onfullscreenchange = t.step_func_done(() => {
14 document.onfullscreenerror = t.step_func_done(); 14 assert_equals(document.fullscreenElement, div);
15 trusted_request(div, document.body); 15 });
16 document.onfullscreenerror = t.unreached_func("fullscreenerror event");
17
18 trusted_request(div, document.body);
16 }); 19 });
17 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698