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

Side by Side Diff: LayoutTests/fullscreen/api/element-ready-check-fullscreen-iframe-child.html

Issue 462103002: Extract "fullscreen element ready check" from requestFullscreen() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Element ready check for child of a fullscreen iframe</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script src="../trusted-event.js"></script>
6 <div id="log"></div>
7 <iframe><!-- script inserts child here --></iframe>
8 <script>
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.
11 async_test(function(t)
12 {
13 var iframe = document.querySelector("iframe");
14 document.onfullscreenchange = t.step_func(function()
15 {
16 assert_equals(document.fullscreenElement, iframe, "fullscreen element");
17 var div = document.createElement("div");
18 iframe.appendChild(div);
falken 2014/08/13 04:26:57 I might not understand iframes well enough. Why do
philipj_slow 2014/08/13 07:38:36 This is the core of our misunderstanding :) The sp
falken 2014/08/13 07:49:40 Ah, I somewhat suspected that. So wrt the spec tex
philipj_slow 2014/08/13 08:12:14 Right, if you click through to the definition of "
falken 2014/08/13 08:45:15 OK, I get it now. I actually had clicked through b
19 assert_equals(div.parentNode, iframe, "FIXME bla bla");
20 assert_equals(div.ownerDocument, document, "FIXME bla blass");
falken 2014/08/13 04:26:57 FIXMEs :)
philipj_slow 2014/08/13 07:38:36 Will remove, they're paranoid checks I added while
21 trusted_request(div, iframe.contentDocument.body);
22 document.onfullscreenchange = t.unreached_func("second fullscreenchange event");
23 document.onfullscreenerror = t.step_func_done();
24 });
25 trusted_request(iframe);
26 });
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698