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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-recalculate-styles.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
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5
6 <style>
7 .test-style {
8 color: red;
9 }
10 </style>
11
12 <script>
13
14 function forceStyle()
15 {
16 var element = document.createElement("div");
17 element.className = "test-style";
18 element.innerHTML = "<span>Test data</span>";
19 document.querySelector('section > div').appendChild(element);
20 var unused = element.offsetWidth;
21 }
22
23 function performActions()
24 {
25 wrapCallFunctionForTimeline(forceStyle);
26 }
27
28 function test()
29 {
30 InspectorTest.performActionsAndPrint("performActions()", "UpdateLayoutTree") ;
31 }
32
33 </script>
34 </head>
35
36 <body onload="runTest()">
37 <p>
38 Tests the Timeline API instrumentation of a style recalculation event
39 </p>
40 <section>
41 <div></div>
42 </section>
43 </body>
44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698