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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/vertical-overflow-parent.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on fast/repaint/vertical-overflow-parent.html --> 1 <!-- Based on fast/repaint/vertical-overflow-parent.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <html><head> 3 <html><head>
4 <style> 4 <style>
5 .container { 5 .container {
6 margin: 20px; 6 margin: 20px;
7 width: 300px; 7 width: 300px;
8 height: 200px; 8 height: 200px;
9 border: 1px solid black; 9 border: 1px solid black;
10 overflow: scroll; 10 overflow: scroll;
(...skipping 17 matching lines...) Expand all
28 <div class="vertical-rl"> 28 <div class="vertical-rl">
29 <div class="container"> 29 <div class="container">
30 <div class="offset"></div> 30 <div class="offset"></div>
31 <div class="target"></div> 31 <div class="target"></div>
32 </div></div> 32 </div></div>
33 An orange rect should be painted.<br/> 33 An orange rect should be painted.<br/>
34 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.
35 <script src="../../../fast/repaint/../../resources/run-after-layout-and-pain t.js"></script> 35 <script src="../../../fast/repaint/../../resources/run-after-layout-and-pain t.js"></script>
36 <script src="resources/paint-invalidation-test.js"></script> 36 <script src="resources/paint-invalidation-test.js"></script>
37 <script> 37 <script>
38 window.expectedPaintInvalidationObjects = [
39 "LayoutBlockFlow DIV class='target'",
40 ];
41 function paintInvalidationTest() { 38 function paintInvalidationTest() {
42 var target = document.getElementsByClassName("target")[0]; 39 var target = document.getElementsByClassName("target")[0];
43 target.style.visibility = "visible"; 40 target.style.visibility = "visible";
44 }; 41 };
45 var container = document.getElementsByClassName("container")[0]; 42 var container = document.getElementsByClassName("container")[0];
46 runAfterLayoutAndPaint(function() { 43 runAfterLayoutAndPaint(function() {
47 container.scrollLeft = 0; 44 container.scrollLeft = 0;
48 runPaintInvalidationTest(); 45 runPaintInvalidationTest();
49 }); 46 });
50 </script> 47 </script>
51 </body></html> 48 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698