2 <p>Test entering full screen for nested iframes.
</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 allowfullscreen
src=
"resources/full-screen-iframe-allowed-nested1.html">
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();
19 window
.onmessage = function (messageEvent
) {
20 consoleWrite(messageEvent
.data
);