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

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

Issue 2463743003: Import web-platform-tests manual tests by default (Closed)
Patch Set: update deps_updater_unittest.py Created 4 years, 1 month 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 a fullscreen iframe</title> 2 <title>Element ready check for child of a fullscreen 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-event.js"></script> 5 <script src="../trusted-click.js"></script>
6 <div id="log"></div> 6 <div id="log"></div>
7 <iframe><!-- script inserts div here --></iframe> 7 <iframe><!-- script inserts div here --></iframe>
8 <script> 8 <script>
9 // Verify that an iframe can itself go fullscreen, and that this doesn't 9 // Verify that an iframe can itself go fullscreen, and that this doesn't
10 // influence the iframe ancestor test of the element ready check. 10 // influence the iframe ancestor test of the element ready check.
11 async_test(function(t) 11 async_test(function(t)
12 { 12 {
13 var iframe = document.querySelector("iframe"); 13 var iframe = document.querySelector("iframe");
14 document.onfullscreenchange = t.step_func(function() 14 document.onfullscreenchange = t.step_func(function()
15 { 15 {
16 assert_equals(document.fullscreenElement, iframe, "fullscreen element"); 16 assert_equals(document.fullscreenElement, iframe, "fullscreen element");
17 var div = document.createElement("div"); 17 var div = document.createElement("div");
18 // This adds the div to the iframe element itself, not to the iframe's 18 // This adds the div to the iframe element itself, not to the iframe's
19 // contentDocument. It's done here because the HTML parser treats the 19 // contentDocument. It's done here because the HTML parser treats the
20 // content of iframe as a text node. 20 // content of iframe as a text node.
21 iframe.appendChild(div); 21 iframe.appendChild(div);
22 trusted_request(div, iframe.contentDocument.body); 22 trusted_request(div, iframe.contentDocument.body);
23 document.onfullscreenchange = t.unreached_func("second fullscreenchange event"); 23 document.onfullscreenchange = t.unreached_func("second fullscreenchange event");
24 document.onfullscreenerror = t.step_func_done(); 24 document.onfullscreenerror = t.step_func_done();
25 }); 25 });
26 trusted_request(iframe); 26 trusted_request(iframe);
27 }); 27 });
28 </script> 28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698