OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <video></video> | 4 <video></video> |
5 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=89785">Bug 89785</a>: REGRES
SION(r116446): Crash in RenderBoxModelObject::adjustedPositionRelativeToOffsetPa
rent</p> | 5 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=89785">Bug 89785</a>: REGRES
SION(r116446): Crash in RenderBoxModelObject::adjustedPositionRelativeToOffsetPa
rent</p> |
6 <script src="full-screen-test.js"></script> | 6 <script src="full-screen-test.js"></script> |
7 <script> | 7 <script> |
8 if ("webkitRequestFullScreen" in Element.prototype) { | 8 if (!window.testRunner) |
9 if (!window.testRunner) | 9 consoleWrite("To manually test this bug, switch to fullscreen. It should
n't crash."); |
10 consoleWrite("To manually test this bug, switch to fullscreen. It sh
ouldn't crash."); | |
11 | 10 |
12 video = document.getElementsByTagName("video")[0]; | 11 video = document.getElementsByTagName("video")[0]; |
13 var fullscreenChanged = function(event) | 12 var fullscreenChanged = function(event) |
14 { | 13 { |
15 video.offsetLeft; | 14 video.offsetLeft; |
16 video.offsetTop; | 15 video.offsetTop; |
17 consoleWrite("PASSED, the page didn't crash."); | 16 consoleWrite("PASSED, the page didn't crash."); |
18 endTest(); | 17 endTest(); |
19 }; | 18 }; |
20 document.addEventListener('webkitfullscreenchange', fullscreenChanged); | 19 document.addEventListener('webkitfullscreenchange', fullscreenChanged); |
21 | 20 |
22 runWithKeyDown(function () { | 21 runWithKeyDown(function () { |
23 video.webkitRequestFullScreen(); | 22 video.webkitRequestFullScreen(); |
24 }); | 23 }); |
25 } else { | |
26 consoleWrite("FAILED, couldn't find webkitRequestFullScreen."); | |
27 endTest(); | |
28 } | |
29 </script> | 24 </script> |
30 </body> | 25 </body> |
31 </html> | 26 </html> |
OLD | NEW |