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

Side by Side Diff: LayoutTests/fullscreen/full-screen-fixed-pos-parent.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 3 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 <style> 3 <style>
4 #bad { 4 #bad {
5 position: fixed; 5 position: fixed;
6 top: 0px; 6 top: 0px;
7 left: 0px; 7 left: 0px;
8 background-color: red; 8 background-color: red;
9 width: 100%; 9 width: 100%;
10 height: 100%; 10 height: 100%;
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 </style> 25 </style>
26 </head> 26 </head>
27 <script src="full-screen-test.js"></script> 27 <script src="full-screen-test.js"></script>
28 <script> 28 <script>
29 if (window.internals) 29 if (window.internals)
30 window.internals.settings.setFixedPositionCreatesStackingContext(true); 30 window.internals.settings.setFixedPositionCreatesStackingContext(true);
31 31
32 function doTest() { 32 function doTest() {
33 if (window.testRunner) { 33 if (window.testRunner) {
34 testRunner.dumpAsText(true); 34 testRunner.dumpAsTextWithPixelResults();
35 testRunner.waitUntilDone(); 35 testRunner.waitUntilDone();
36 } 36 }
37 document.body.offsetTop; 37 document.body.offsetTop;
38 var fullscreen = document.getElementById('fullscreenme'); 38 var fullscreen = document.getElementById('fullscreenme');
39 39
40 var fullscreenChangeEvent = function(event) { 40 var fullscreenChangeEvent = function(event) {
41 if (window.testRunner) 41 if (window.testRunner)
42 testRunner.notifyDone(); 42 testRunner.notifyDone();
43 }; 43 };
44 44
45 document.addEventListener('webkitfullscreenchange', fullscreenChangeEven t); 45 document.addEventListener('webkitfullscreenchange', fullscreenChangeEven t);
46 document.addEventListener('keydown', function () { 46 document.addEventListener('keydown', function () {
47 fullscreen.webkitRequestFullScreen(); 47 fullscreen.webkitRequestFullScreen();
48 48
49 }); 49 });
50 if (window.eventSender) 50 if (window.eventSender)
51 eventSender.keyDown('a'); 51 eventSender.keyDown('a');
52 } 52 }
53 if ("webkitRequestFullScreen" in Element.prototype) 53 if ("webkitRequestFullScreen" in Element.prototype)
54 window.addEventListener("load", doTest, false); 54 window.addEventListener("load", doTest, false);
55 </script> 55 </script>
56 <body> 56 <body>
57 <!-- when full screening the iframe, bad should not be visible --> 57 <!-- when full screening the iframe, bad should not be visible -->
58 <div id="fixed-container"> 58 <div id="fixed-container">
59 <iframe id="fullscreenme" src="resources/green.html"></iframe> 59 <iframe id="fullscreenme" src="resources/green.html"></iframe>
60 </div> 60 </div>
61 <div id="bad"></div> 61 <div id="bad"></div>
62 </body> 62 </body>
63 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698