blob: ce7e69e7a4d046795c009c0c06031f31b5d2a05c [file] [log] [blame]
<p>Test entering full screen for a nested iframe works with a mixture of both
allowfullscreen and webkitallowfullscreen.</p>
<p>To test manually, click into inner frame, the page should enter full screen mode.</p>
<script src="full-screen-test.js"></script>
<iframe webkitallowfullscreen src="resources/full-screen-iframe-with-mixed-allow-webkitallow-iframe1.html">
</iframe>
<script>
window.onmessage = function () { // iframes have been loaded and messaged us.
// Send click to center of iframe.
iframe = document.getElementsByTagName("iframe")[0];
x = iframe.offsetLeft + iframe.offsetWidth / 2;
y = iframe.offsetTop + iframe.offsetHeight / 2;
if (window.eventSender) {
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown();
eventSender.mouseUp();
}
window.onmessage = function (messageEvent) {
consoleWrite(messageEvent.data);
endTest();
}
}
</script>