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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-recalculate-styles.html

Issue 1638563002: DevTools: migrate ScriptFunctionCall off ScriptValue (to be inlined into the InjectedScript.cpp). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready for review Created 4 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 5
6 <style> 6 <style>
7 .test-style { 7 .test-style {
8 color: red; 8 color: red;
9 } 9 }
10 </style> 10 </style>
11 11
12 <script> 12 <script>
13 13
14 function performActions() 14 function performActions()
15 { 15 {
16 var script = document.createElement("script");
17 script.textContent = "innerPerformActions();";
18 document.head.appendChild(script);
19 }
20
21 function innerPerformActions()
22 {
16 var element = document.createElement("div"); 23 var element = document.createElement("div");
17 element.className = "test-style"; 24 element.className = "test-style";
18 element.innerHTML = "<span>Test data</span>"; 25 element.innerHTML = "<span>Test data</span>";
19 document.querySelector('section > div').appendChild(element); 26 document.querySelector('section > div').appendChild(element);
20 var unused = element.offsetWidth; 27 var unused = element.offsetWidth;
21 } 28 }
22 29
23 function test() 30 function test()
24 { 31 {
25 InspectorTest.performActionsAndPrint("performActions()", "UpdateLayoutTree") ; 32 InspectorTest.performActionsAndPrint("performActions()", "UpdateLayoutTree") ;
26 } 33 }
27 34
28 </script> 35 </script>
29 </head> 36 </head>
30 37
31 <body onload="runTest()"> 38 <body onload="runTest()">
32 <p> 39 <p>
33 Tests the Timeline API instrumentation of a style recalculation event 40 Tests the Timeline API instrumentation of a style recalculation event
34 </p> 41 </p>
35 <section> 42 <section>
36 <div></div> 43 <div></div>
37 </section> 44 </section>
38 </body> 45 </body>
39 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698