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

Side by Side Diff: LayoutTests/compositing/iframes/resources/fixed-position-subframe.html

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert change to plugin test Created 6 years, 9 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../resources/run-after-display.js"></script>
3 <style> 4 <style>
4 body { 5 body {
5 height: 5000px; 6 height: 5000px;
6 background-color: red; 7 background-color: red;
7 overflow: hidden; 8 overflow: hidden;
8 } 9 }
9 10
10 #trigger { 11 #trigger {
11 -webkit-transform:translateZ(0); 12 -webkit-transform:translateZ(0);
12 } 13 }
13 14
14 #overlap { 15 #overlap {
15 width: 1000px; 16 width: 1000px;
16 height: 1000px; 17 height: 1000px;
17 background-color: green; 18 background-color: green;
18 position: fixed; 19 position: fixed;
19 left: 0px; 20 left: 0px;
20 top: 0px; 21 top: 0px;
21 } 22 }
22 </style> 23 </style>
23 </head> 24 </head>
24 <script> 25 <script>
25 function doTest() { 26 function doTest() {
26 if (window.testRunner) 27 if (window.testRunner) {
27 testRunner.dumpAsTextWithPixelResults(); 28 testRunner.dumpAsTextWithPixelResults();
29 testRunner.waitUntilDone();
30 }
28 window.scrollTo(0, 2000); 31 window.scrollTo(0, 2000);
29 if (window.testRunner) 32 runAfterDisplay(function() {
30 testRunner.display(); 33 window.scrollTo(0, 1800);
31 window.scrollTo(0, 1800); 34 if (window.testRunner)
35 testRunner.notifyDone();
36 });
32 } 37 }
33 window.addEventListener("load", doTest, false); 38 window.addEventListener("load", doTest, false);
34 </script> 39 </script>
35 <body> 40 <body>
36 <div id="trigger"></div> 41 <div id="trigger"></div>
37 <div id="overlap"></div> 42 <div id="overlap"></div>
38 </body> 43 </body>
39 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698