OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
esprehn
2014/03/05 00:22:41
Leave out <html>, <head> and <body> then this test
qinmin
2014/03/05 01:34:42
Done.
| |
4 <script> | |
5 if (window.internals) | |
6 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEna bled; | |
7 </script> | |
8 <script src="full-screen-test.js"></script> | |
9 <script> | |
10 window.onmessage = function () { // video has been loaded and messag ed us. | |
esprehn
2014/03/05 00:22:41
no space after function
qinmin
2014/03/05 01:34:42
Done.
| |
11 // Send click to center of iframe. | |
12 iframe = document.getElementById("frame"); | |
13 x = iframe.offsetLeft + iframe.offsetWidth / 2; | |
14 y = iframe.offsetTop + iframe.offsetHeight / 2; | |
15 if (window.eventSender) { | |
16 eventSender.mouseMoveTo(x, y); | |
17 eventSender.mouseDown(); | |
18 eventSender.mouseUp(); | |
19 } | |
20 window.onmessage = function (messageEvent) { | |
esprehn
2014/03/05 00:22:41
This is pretty weird, you overwrite yourself here.
qinmin
2014/03/05 01:34:42
ok, use a variable to remember whether the video h
| |
21 consoleWrite(messageEvent.data); | |
22 endTest(); | |
23 } | |
24 } | |
25 </script> | |
26 </head> | |
27 <body> | |
28 Video inside an iframe is allowed to enter fullscreen</p> | |
29 <iframe id="frame" src="resources/video.html" width="320" height="240" a llowfullscreen></iframe> | |
30 </body> | |
31 </html> | |
OLD | NEW |