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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/resize-repaint.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/resize-repaint.html --> 1 <!-- Based on compositing/repaint/resize-repaint.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 3
4 <html> 4 <html>
5 <head> 5 <head>
6 <style> 6 <style>
7 #resizing { 7 #resizing {
8 width: 400px; 8 width: 400px;
9 border: 1px solid black; 9 border: 1px solid black;
10 transform: translateZ(0); 10 transform: translateZ(0);
11 } 11 }
12 12
13 #resizing > div { 13 #resizing > div {
14 height: 50px; 14 height: 50px;
15 margin: 1px; 15 margin: 1px;
16 background-color: silver; 16 background-color: silver;
17 } 17 }
18 </style> 18 </style>
19 <script src="resources/paint-invalidation-test.js"></script> 19 <script src="resources/paint-invalidation-test.js"></script>
20 <script> 20 <script>
21 window.expectedPaintInvalidationObjects = [
22 "LayoutBlockFlow DIV id='resizing'",
23 "LayoutBlockFlow DIV",
24 "LayoutBlockFlow DIV",
25 ];
26 function paintInvalidationTest() 21 function paintInvalidationTest()
27 { 22 {
28 var resizingDiv = document.getElementById('resizing'); 23 var resizingDiv = document.getElementById('resizing');
29 24
30 for (var i = 0; i < 2; ++i) { 25 for (var i = 0; i < 2; ++i) {
31 var newDiv = document.createElement('div'); 26 var newDiv = document.createElement('div');
32 resizingDiv.appendChild(newDiv); 27 resizingDiv.appendChild(newDiv);
33 } 28 }
34 } 29 }
35 30
36 window.onload = runPaintInvalidationTest; 31 window.onload = runPaintInvalidationTest;
37 </script> 32 </script>
38 </head> 33 </head>
39 <body> 34 <body>
40 35
41 <div id="resizing"> 36 <div id="resizing">
42 <div></div> 37 <div></div>
43 <div></div> 38 <div></div>
44 </div> 39 </div>
45 40
46 </body> 41 </body>
47 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698