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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/justify-self-change-keeping-geometry.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/justify-self-change-keeping-geometry.html -->
1 <!DOCTYPE HTML> 2 <!DOCTYPE HTML>
2 <script src="resources/text-based-repaint.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
3 <script> 4 <script>
4 function repaintTest() { 5 window.expectedPaintInvalidationObjects = [
6 ];
7 function paintInvalidationTest() {
5 document.getElementsByClassName('item1')[0].style.justifySelf = 'left'; 8 document.getElementsByClassName('item1')[0].style.justifySelf = 'left';
6 document.getElementsByClassName('item2')[0].style.justifySelf = 'right'; 9 document.getElementsByClassName('item2')[0].style.justifySelf = 'right';
7 } 10 }
8 onload = runRepaintTest; 11 onload = runPaintInvalidationTest;
9 </script> 12 </script>
10 <style> 13 <style>
11 body { 14 body {
12 margin: 0; 15 margin: 0;
13 } 16 }
14 #container { 17 #container {
15 display: grid; 18 display: grid;
16 grid: 100px 100px / 150px 150px; 19 grid: 100px 100px / 150px 150px;
17 width: 200px; 20 width: 200px;
18 height: 300px; 21 height: 300px;
(...skipping 15 matching lines...) Expand all
34 </style> 37 </style>
35 <p style="height: 20px">Tests invalidation on justify-self style change. Passes if there is no red.</p> 38 <p style="height: 20px">Tests invalidation on justify-self style change. Passes if there is no red.</p>
36 <div id="container"> 39 <div id="container">
37 <div class="item1"> 40 <div class="item1">
38 <div style="height: 150px"></div> 41 <div style="height: 150px"></div>
39 </div> 42 </div>
40 <div class="item2"> 43 <div class="item2">
41 <div style="height: 100px"></div> 44 <div style="height: 100px"></div>
42 </div> 45 </div>
43 </div> 46 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698