Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: LayoutTests/fullscreen/full-screen-crash-offsetLeft.html

Issue 462253003: Remove early returns in fullscreen tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/full-screen-child-not-allowed-crash.html ('k') | LayoutTests/fullscreen/full-screen-css.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698