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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/shadow-box-resize-writing-mode.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/box-shadow/shadow-box-resize-writing-mode.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <script src="../repaint/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 (positioned) DIV id='target1'",
7 "LayoutBlockFlow (positioned) DIV id='target2'",
8 "LayoutBlockFlow (positioned) DIV id='target3'",
9 "LayoutBlockFlow (positioned) DIV id='target4'",
10 ];
11 function paintInvalidationTest()
5 { 12 {
6 document.getElementById('target1').style.width = '150px'; 13 document.getElementById('target1').style.width = '150px';
7 document.getElementById('target2').style.width = '50px'; 14 document.getElementById('target2').style.width = '50px';
8 document.getElementById('target3').style.height = '150px'; 15 document.getElementById('target3').style.height = '150px';
9 document.getElementById('target4').style.height = '50px'; 16 document.getElementById('target4').style.height = '50px';
10 } 17 }
11 window.onload = runRepaintTest; 18 window.onload = runPaintInvalidationTest;
12 </script> 19 </script>
13 <style> 20 <style>
14 body { 21 body {
15 margin: 0; 22 margin: 0;
16 } 23 }
17 div { 24 div {
18 position: absolute; 25 position: absolute;
19 width: 100px; 26 width: 100px;
20 height: 100px; 27 height: 100px;
21 background-color: green; 28 background-color: green;
(...skipping 14 matching lines...) Expand all
36 } 43 }
37 #target4 { 44 #target4 {
38 top: 300px; 45 top: 300px;
39 left: 300px; 46 left: 300px;
40 } 47 }
41 </style> 48 </style>
42 <div id="target1"></div> 49 <div id="target1"></div>
43 <div id="target2"></div> 50 <div id="target2"></div>
44 <div id="target3"></div> 51 <div id="target3"></div>
45 <div id="target4"></div> 52 <div id="target4"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698