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

Side by Side Diff: LayoutTests/fullscreen/full-screen-iframe-with-mixed-allow-webkitallow-attribute.html

Issue 336313015: Remove the webkitallowfullscreen content attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix quirks mode test Created 6 years, 5 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 <p>Test entering full screen for a nested iframe works with a mixture of both
2 allowfullscreen and webkitallowfullscreen.</p>
3 <p>To test manually, click into inner frame, the page should enter full screen m ode.</p>
4 <script src="full-screen-test.js"></script>
5 <iframe webkitallowfullscreen src="resources/full-screen-iframe-with-mixed-allow -webkitallow-iframe1.html">
6 </iframe>
7 <script>
8 window.onmessage = function () { // iframes have been loaded and messaged us.
9 // Send click to center of iframe.
10 iframe = document.getElementsByTagName("iframe")[0];
11 x = iframe.offsetLeft + iframe.offsetWidth / 2;
12 y = iframe.offsetTop + iframe.offsetHeight / 2;
13 if (window.eventSender) {
14 eventSender.mouseMoveTo(x, y);
15 eventSender.mouseDown();
16 eventSender.mouseUp();
17 }
18
19 window.onmessage = function (messageEvent) {
20 consoleWrite(messageEvent.data);
21 endTest();
22 }
23 }
24 </script>
25
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698