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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/justify-items-legacy-change.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-items-legacy-change.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 "LayoutBlockFlow DIV",
7 "LayoutBlockFlow DIV class='item1'",
8 "LayoutBlockFlow DIV",
9 "LayoutBlockFlow DIV class='item2'",
10 "LayoutGrid DIV id='container'",
11 "LayoutBlockFlow DIV id='parentContainer'",
12 "LayoutBlockFlow DIV id='parentContainer'",
13 "LayoutGrid DIV id='container'",
14 "LayoutBlockFlow DIV class='item1'",
15 "LayoutBlockFlow DIV",
16 "LayoutBlockFlow DIV class='item2'",
17 "LayoutBlockFlow DIV",
18 ];
19 function paintInvalidationTest() {
5 document.getElementById('parentContainer').style.justifyItems = 'legacy center '; 20 document.getElementById('parentContainer').style.justifyItems = 'legacy center ';
6 } 21 }
7 onload = runRepaintTest; 22 onload = runPaintInvalidationTest;
8 </script> 23 </script>
9 <style> 24 <style>
10 body { 25 body {
11 margin: 0; 26 margin: 0;
12 } 27 }
13 #parentContainer { 28 #parentContainer {
14 justify-items: center; 29 justify-items: center;
15 background-color: orange; 30 background-color: orange;
16 width: 300px; 31 width: 300px;
17 height: 400px; 32 height: 400px;
(...skipping 24 matching lines...) Expand all
42 <div id="parentContainer"> 57 <div id="parentContainer">
43 <div id="container"> 58 <div id="container">
44 <div class="item1"> 59 <div class="item1">
45 <div style="height: 50px"></div> 60 <div style="height: 50px"></div>
46 </div> 61 </div>
47 <div class="item2"> 62 <div class="item2">
48 <div style="height: 50px"></div> 63 <div style="height: 50px"></div>
49 </div> 64 </div>
50 </div> 65 </div>
51 </div> 66 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698