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

Side by Side Diff: LayoutTests/inspector/tracing/timeline-paint-and-multiple-style-invalidations.html

Issue 946993002: Avoid style invalidation for empty sets. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added dummy selectors to tests to force descendant invalidation Created 5 years, 10 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 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/timeline-test.js"></script> 5 <script src="../../http/tests/inspector/timeline-test.js"></script>
6 <script> 6 <script>
7 function multipleStyleRecalcsAndDisplay(callback) 7 function multipleStyleRecalcsAndDisplay(callback)
8 { 8 {
9 requestAnimationFrame(function() { 9 requestAnimationFrame(function() {
10 document.getElementById("testElementOne").className = "red"; 10 document.getElementById("testElementOne").className = "red";
(...skipping 28 matching lines...) Expand all
39 InspectorTest.assertTrue(secondPaint === undefined, "There should be no additional paint records."); 39 InspectorTest.assertTrue(secondPaint === undefined, "There should be no additional paint records.");
40 InspectorTest.completeTest(); 40 InspectorTest.completeTest();
41 } 41 }
42 } 42 }
43 </script> 43 </script>
44 <style> 44 <style>
45 .testHolder > .red { background-color: red; } 45 .testHolder > .red { background-color: red; }
46 .testHolder > .green { background-color: green; } 46 .testHolder > .green { background-color: green; }
47 .testHolder > .blue { background-color: blue; } 47 .testHolder > .blue { background-color: blue; }
48 .testHolder > .snow { background-color: snow; } 48 .testHolder > .snow { background-color: snow; }
49 .testHolder > .red .dummy { }
50 .testHolder > .green .dummy { }
51 .testHolder > .blue .dummy { }
52 .testHolder > .snow .dummy { }
49 </style> 53 </style>
50 </head> 54 </head>
51 <body onload="runTest()"> 55 <body onload="runTest()">
52 <p>Tests the Timeline API instrumentation of multiple style recalc invalidations and ensures they are all collected on the paint event.</p> 56 <p>Tests the Timeline API instrumentation of multiple style recalc invalidations and ensures they are all collected on the paint event.</p>
53 <div class="testHolder"> 57 <div class="testHolder">
54 <div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="t estElementThree">PASS</div> 58 <div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="t estElementThree">PASS</div>
55 </div> 59 </div>
56 </body> 60 </body>
57 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698