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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/horizontal-bt-overflow-child.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 <!-- Based on fast/repaint/horizontal-bt-overflow-child.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <html><head> 3 <html><head>
3 <style> 4 <style>
4 .container { 5 .container {
5 margin: 20px; 6 margin: 20px;
6 width: 300px; 7 width: 300px;
7 height: 200px; 8 height: 200px;
8 border: 1px solid black; 9 border: 1px solid black;
9 overflow: scroll; 10 overflow: scroll;
10 } 11 }
(...skipping 13 matching lines...) Expand all
24 </style> 25 </style>
25 </head> 26 </head>
26 <body> 27 <body>
27 <div class="container"> 28 <div class="container">
28 <div class="horizontal-bt"> 29 <div class="horizontal-bt">
29 <div class="target"></div> 30 <div class="target"></div>
30 <div class="offset"></div> 31 <div class="offset"></div>
31 </div></div> 32 </div></div>
32 An orange rect should be painted.<br/> 33 An orange rect should be painted.<br/>
33 In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't ca re how many times is the log dumpped. 34 In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't ca re how many times is the log dumpped.
34 <script src="../../resources/run-after-layout-and-paint.js"></script> 35 <script src="../../../resources/run-after-layout-and-paint.js"></script>
35 <script src="resources/text-based-repaint.js"></script> 36 <script src="resources/paint-invalidation-test.js"></script>
36 <script> 37 <script>
37 repaintTest = function() { 38 window.expectedPaintInvalidationObjects = [
39 "LayoutBlockFlow DIV class='target'",
40 ];
41 function paintInvalidationTest() {
38 var target = document.getElementsByClassName("target")[0]; 42 var target = document.getElementsByClassName("target")[0];
39 target.style.visibility = "visible"; 43 target.style.visibility = "visible";
40 }; 44 };
41 var container = document.getElementsByClassName("container")[0]; 45 var container = document.getElementsByClassName("container")[0];
42 runAfterLayoutAndPaint(function() { 46 runAfterLayoutAndPaint(function() {
43 container.scrollTop = 3000; 47 container.scrollTop = 3000;
44 runRepaintTest(); 48 runPaintInvalidationTest();
45 }); 49 });
46 </script> 50 </script>
47 </body></html> 51 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698