summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/plugins/fullscreen-plugins-dont-reload.html
blob: 3664d8ee4fb03e5f7717c861ad98a3ada6e67849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
<a id='link' href="javascript:document.getElementById('plg').webkitRequestFullScreen()">go
fullscreen</a>
<p>
There should only be one ALERT. If there were two, the plugin was reloaded
during the transition to fullscreen.
</p>
<embed id="plg" type="application/x-webkit-test-netscape" src="data:application/x-webkit-test-netscape,alertwhenloaded"></iframe>

<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();

    var plugin = document.getElementById('plg');
    plugin.addEventListener('webkitfullscreenchange', function () {
        testRunner.notifyDone();
    })
    document.addEventListener('keydown', function () {
        plugin.webkitRequestFullScreen();
    })
    eventSender.keyDown('a')
}
</script>
</html>