Default mouse cursor behavior should be auto-hide for full screen video with custom...
[WebKit-https.git] / LayoutTests / fullscreen / full-screen-iframe-with-mixed-allow-webkitallow-attribute.html
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 mode.</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