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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/add-table-overpaint.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/add-table-overpaint.html --> 1 <!-- Based on fast/repaint/add-table-overpaint.html -->
2 2
3 <!DOCTYPE html> 3 <!DOCTYPE html>
4 <html> 4 <html>
5 <body onload="runPaintInvalidationTest()" style="margin: 0px"> 5 <body onload="runPaintInvalidationTest()" style="margin: 0px">
6 <script src="resources/paint-invalidation-test.js"></script> 6 <script src="resources/paint-invalidation-test.js"></script>
7 <style> 7 <style>
8 td { 8 td {
9 height: 150px; 9 height: 150px;
10 width: 150px; 10 width: 150px;
11 background-color: blue; 11 background-color: blue;
12 } 12 }
13 </style> 13 </style>
14 <!-- This test adds 3 tables do the document. Adding the 3rd table should not c ause the first table to repaint. --> 14 <!-- This test adds 3 tables do the document. Adding the 3rd table should not c ause the first table to repaint. -->
15 <div id="container"></div> 15 <div id="container"></div>
16 <script> 16 <script>
17 function addTable() { 17 function addTable() {
18 var div = document.createElement('div'); 18 var div = document.createElement('div');
19 document.getElementById('container').appendChild(div); 19 document.getElementById('container').appendChild(div);
20 div.innerHTML = '<table><td></td></table>'; 20 div.innerHTML = '<table><td></td></table>';
21 } 21 }
22 addTable(); 22 addTable();
23 addTable(); 23 addTable();
24 window.expectedPaintInvalidationObjects = [
25 "LayoutBlockFlow DIV",
26 "LayoutTable TABLE",
27 "LayoutTableCell TD",
28 "LayoutTableSection TBODY",
29 "LayoutTableRow TR",
30 "LayoutTableCell TD",
31 ];
32 function paintInvalidationTest() { 24 function paintInvalidationTest() {
33 addTable(); 25 addTable();
34 } 26 }
35 </script> 27 </script>
36 </body> 28 </body>
37 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698