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

Side by Side Diff: LayoutTests/compositing/repaint/requires-backing-repaint.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <script src="../../resources/run-after-display.js"></script>
5 <style> 6 <style>
6 .bar { 7 .bar {
7 width: 200px; 8 width: 200px;
8 height: 50px; 9 height: 50px;
9 margin-left: 50px; 10 margin-left: 50px;
10 background-color: gray; 11 background-color: gray;
11 -webkit-transform: translateZ(0); 12 -webkit-transform: translateZ(0);
12 } 13 }
13 14
14 #overflow { 15 #overflow {
(...skipping 20 matching lines...) Expand all
35 if (window.testRunner) { 36 if (window.testRunner) {
36 testRunner.dumpAsTextWithPixelResults(); 37 testRunner.dumpAsTextWithPixelResults();
37 testRunner.waitUntilDone(); 38 testRunner.waitUntilDone();
38 } 39 }
39 40
40 function doTest() 41 function doTest()
41 { 42 {
42 var overflow = document.getElementById('overflow'); 43 var overflow = document.getElementById('overflow');
43 overflow.scrollTop = 50; 44 overflow.scrollTop = 50;
44 45
45 if (window.testRunner) 46 runAfterDisplay(function() {
46 testRunner.display();
47
48 window.setTimeout(function() {
49 overflow.scrollTop = 75; 47 overflow.scrollTop = 75;
50 if (window.testRunner) 48 if (window.testRunner)
51 testRunner.notifyDone(); 49 testRunner.notifyDone();
52 }, 0) 50 });
53 } 51 }
54 window.addEventListener('load', doTest, false); 52 window.addEventListener('load', doTest, false);
55 </script> 53 </script>
56 </head> 54 </head>
57 <body> 55 <body>
58 56
59 <div class="bar"></div> 57 <div class="bar"></div>
60 58
61 <div id="overflow"> 59 <div id="overflow">
62 <div></div> 60 <div></div>
63 <div></div> 61 <div></div>
64 <div></div> 62 <div></div>
65 <div></div> 63 <div></div>
66 <div></div> 64 <div></div>
67 </div> 65 </div>
68 </body> 66 </body>
69 </html> 67 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/repaint/page-scale-repaint.html ('k') | LayoutTests/compositing/repaint/transform-style-change.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698