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

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

Powered by Google App Engine
This is Rietveld 408576698