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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/invalidations-on-composited-layers.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 compositing/repaint/invalidations-on-composited-layers.html --> 1 <!-- Based on compositing/repaint/invalidations-on-composited-layers.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 3
4 <!-- 4 <!--
5 This test checks that repaint testing works with composited layers. 5 This test checks that repaint testing works with composited layers.
6 --> 6 -->
7 7
8 <html> 8 <html>
9 <head> 9 <head>
10 <style type="text/css"> 10 <style type="text/css">
(...skipping 10 matching lines...) Expand all
21 left: 50px; 21 left: 50px;
22 top: 50px; 22 top: 50px;
23 width: 75px; 23 width: 75px;
24 height: 75px; 24 height: 75px;
25 background: green; 25 background: green;
26 } 26 }
27 27
28 </style> 28 </style>
29 <script src="resources/paint-invalidation-test.js"></script> 29 <script src="resources/paint-invalidation-test.js"></script>
30 <script> 30 <script>
31 window.expectedPaintInvalidationObjects = [
32 "LayoutBlockFlow DIV id='parent'",
33 "LayoutBlockFlow (relative positioned) DIV id='child'",
34 ];
35 function paintInvalidationTest() { 31 function paintInvalidationTest() {
36 var parent = document.getElementById('parent'); 32 var parent = document.getElementById('parent');
37 var child = document.getElementById('child'); 33 var child = document.getElementById('child');
38 34
39 child.style.background = 'blue'; 35 child.style.background = 'blue';
40 parent.style.background = 'green'; 36 parent.style.background = 'green';
41 } 37 }
42 38
43 runPaintInvalidationTest(); 39 runPaintInvalidationTest();
44 </script> 40 </script>
45 </head> 41 </head>
46 <body> 42 <body>
47 <div id="parent"> 43 <div id="parent">
48 <div id="child"></div> 44 <div id="child"></div>
49 </div> 45 </div>
50 </body> 46 </body>
51 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698