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

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

Issue 2145873002: [DevTools] Split inspector/tracing into subdirectories to speed things up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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";
11 var forceStyleRecalc1 = document.body.offsetTop; 11 var forceStyleRecalc1 = document.body.offsetTop;
12 document.getElementById("testElementOne").className = "snow"; 12 document.getElementById("testElementOne").className = "snow";
13 var forceStyleRecalc2 = document.body.offsetTop; 13 var forceStyleRecalc2 = document.body.offsetTop;
14 if (window.testRunner) 14 if (window.testRunner)
15 testRunner.layoutAndPaintAsyncThen(callback); 15 testRunner.layoutAndPaintAsyncThen(callback);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 .testHolder > .snow .dummy { } 52 .testHolder > .snow .dummy { }
53 </style> 53 </style>
54 </head> 54 </head>
55 <body onload="runTest()"> 55 <body onload="runTest()">
56 <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>
57 <div class="testHolder"> 57 <div class="testHolder">
58 <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>
59 </div> 59 </div>
60 </body> 60 </body>
61 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698