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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/timeline/timeline-layout.html

Issue 2208963002: [DevTools] Removed InspectorTest.invokeFunctionInPageAsync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-promise-from-other-tests
Patch Set: a Created 4 years, 4 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 <style> 3 <style>
4 .my-class { 4 .my-class {
5 min-width: 100px; 5 min-width: 100px;
6 background-color: red; 6 background-color: red;
7 } 7 }
8 </style> 8 </style>
9 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 9 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
10 <script type="text/javascript" src="../../http/tests/inspector-protocol/tracing- test.js"></script> 10 <script type="text/javascript" src="../../http/tests/inspector-protocol/tracing- test.js"></script>
11 <script> 11 <script>
12 12
13 function performActions(callback) 13 function performActions()
14 { 14 {
15 var div = document.querySelector("#myDiv"); 15 var div = document.querySelector("#myDiv");
16 div.classList.add("my-class"); 16 div.classList.add("my-class");
17 div.offsetWidth; 17 div.offsetWidth;
18 callback(); 18 return Promise.resolve();
19 } 19 }
20 20
21 function test() 21 function test()
22 { 22 {
23 InspectorTest.invokeAsyncWithTracing("performActions", finish); 23 InspectorTest.invokeAsyncWithTracing("performActions", finish);
24 24
25 function finish(devtoolsEvents) 25 function finish(devtoolsEvents)
26 { 26 {
27 var schedRecalc = InspectorTest.findEvent("ScheduleStyleRecalculation", "I"); 27 var schedRecalc = InspectorTest.findEvent("ScheduleStyleRecalculation", "I");
28 var recalcBegin = InspectorTest.findEvent("UpdateLayoutTree", "B"); 28 var recalcBegin = InspectorTest.findEvent("UpdateLayoutTree", "B");
(...skipping 20 matching lines...) Expand all
49 InspectorTest.completeTest(); 49 InspectorTest.completeTest();
50 } 50 }
51 51
52 } 52 }
53 </script> 53 </script>
54 </head> 54 </head>
55 <body onLoad="runTest();"> 55 <body onLoad="runTest();">
56 <div id="myDiv">DIV</div> 56 <div id="myDiv">DIV</div>
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698