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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/repaint-on-style-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/repaint-on-style-change.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <html> 3 <html>
3 <head> 4 <head>
4 <title>Test for repaint on style change</title> 5 <title>Test for repaint on style change</title>
5 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 6 <script src="resources/paint-invalidation-test.js" type="text/javascript"></ script>
6 <script> 7 <script>
7 function repaintTest() 8 window.expectedPaintInvalidationObjects = [
9 "LayoutBlockFlow (positioned) DIV id='box'",
10 ];
11 function paintInvalidationTest()
8 { 12 {
9 if (!window.testRunner) 13 if (!window.testRunner)
10 return; 14 return;
11 document.getElementById('box').style['background-color'] = 'green'; 15 document.getElementById('box').style['background-color'] = 'green';
12 } 16 }
13 </script> 17 </script>
14 <style> 18 <style>
15 div { 19 div {
16 background-color: magenta; 20 background-color: magenta;
17 height: 100px; 21 height: 100px;
18 width: 100px; 22 width: 100px;
19 23
20 position: absolute; 24 position: absolute;
21 top: 260px; 25 top: 260px;
22 left: 260px; 26 left: 260px;
23 } 27 }
24 </style> 28 </style>
25 </head> 29 </head>
26 <body onload="runRepaintTest()"> 30 <body onload="runPaintInvalidationTest()">
27 <div id='box'> </div> 31 <div id='box'> </div>
28 </body> 32 </body>
29 </html> 33 </html>
30 34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698