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

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

Powered by Google App Engine
This is Rietveld 408576698