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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/grid-element-change-rows-repaint.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/css-grid-layout/grid-element-change-rows-repaint.html --> 1 <!-- Based on fast/css-grid-layout/grid-element-change-rows-repaint.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <html> 3 <html>
4 <script src="resources/paint-invalidation-test.js"></script> 4 <script src="resources/paint-invalidation-test.js"></script>
5 <script> 5 <script>
6 window.expectedPaintInvalidationObjects = [
7 "LayoutGrid DIV class='grid'",
8 "LayoutBlockFlow DIV class='sizedToGridArea'",
9 ];
10 function paintInvalidationTest() 6 function paintInvalidationTest()
11 { 7 {
12 var gridElement = document.getElementsByClassName("grid")[0]; 8 var gridElement = document.getElementsByClassName("grid")[0];
13 gridElement.style.gridTemplateRows = "100px 50px"; 9 gridElement.style.gridTemplateRows = "100px 50px";
14 } 10 }
15 window.addEventListener("load", runPaintInvalidationTest, false); 11 window.addEventListener("load", runPaintInvalidationTest, false);
16 </script> 12 </script>
17 <link href="../../../fast/css-grid-layout/resources/grid.css" rel="stylesheet"> 13 <link href="../../../fast/css-grid-layout/resources/grid.css" rel="stylesheet">
18 <style> 14 <style>
19 body { 15 body {
(...skipping 11 matching lines...) Expand all
31 </style> 27 </style>
32 <body> 28 <body>
33 <div>This test checks that changing the grid-template-rows lead to a repaint. Th e final grid element should be 100px * 150px, the grid item should be 100px * 10 0px. No trace of the elements before the grid-template-rows change should be see n.</div> 29 <div>This test checks that changing the grid-template-rows lead to a repaint. Th e final grid element should be 100px * 150px, the grid item should be 100px * 10 0px. No trace of the elements before the grid-template-rows change should be see n.</div>
34 <div class="constrainedContainer"> 30 <div class="constrainedContainer">
35 <div class="grid"> 31 <div class="grid">
36 <div class="sizedToGridArea"></div> 32 <div class="sizedToGridArea"></div>
37 </div> 33 </div>
38 </div> 34 </div>
39 </body> 35 </body>
40 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698