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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/vertical-overflow-same.html

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html><head> 2 <html><head>
3 <style> 3 <style>
4 .container { 4 .container {
5 margin: 20px; 5 margin: 20px;
6 width: 300px; 6 width: 300px;
7 height: 200px; 7 height: 200px;
8 border: 1px solid black; 8 border: 1px solid black;
9 overflow: scroll; 9 overflow: scroll;
10 } 10 }
(...skipping 13 matching lines...) Expand all
24 </style> 24 </style>
25 </head> 25 </head>
26 <body> 26 <body>
27 <div class="vertical-rl container"> 27 <div class="vertical-rl container">
28 <div class="offset"></div> 28 <div class="offset"></div>
29 <div class="target"></div> 29 <div class="target"></div>
30 </div> 30 </div>
31 An orange rect should be painted.<br/> 31 An orange rect should be painted.<br/>
32 In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't ca re how many times is the log dumpped. 32 In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't ca re how many times is the log dumpped.
33 <script src="../../resources/run-after-layout-and-paint.js"></script> 33 <script src="../../resources/run-after-layout-and-paint.js"></script>
34 <script src="resources/text-based-repaint.js"></script> 34 <script src="resources/repaint.js"></script>
35 <script> 35 <script>
36 repaintTest = function() { 36 repaintTest = function() {
37 var target = document.getElementsByClassName("target")[0]; 37 var target = document.getElementsByClassName("target")[0];
38 target.style.visibility = "visible"; 38 target.style.visibility = "visible";
39 }; 39 };
40 var container = document.getElementsByClassName("container")[0]; 40 var container = document.getElementsByClassName("container")[0];
41 runAfterLayoutAndPaint(function() { 41 runAfterLayoutAndPaint(function() {
42 container.scrollLeft = 0; 42 container.scrollLeft = 0;
43 runRepaintTest(); 43 runRepaintTest();
44 }); 44 });
45 </script> 45 </script>
46 </body></html> 46 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698