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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-microtasks.html

Issue 2282403006: DevTools: Introduce RunMicrotasks event. (Closed)
Patch Set: update expectations Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-microtasks-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <script>
6
7 var scriptUrl = "timeline-network-resource.js";
8
9 function performActions()
10 {
11 function promiseResolved()
12 {
13 setTimeout(() => {}, 0);
14 }
15
16 return new Promise(fulfill => {
17 var xhr = new XMLHttpRequest();
18 xhr.onreadystatechange = () => xhr.readyState === 4 ? fulfill() : 0;
19 xhr.onerror = fulfill;
20 xhr.open("GET", "../resources/test.webp", true);
21 xhr.send();
22 }).then(promiseResolved);
23 }
24
25 function test()
26 {
27 var model = WebInspector.panels.timeline._model;
28 InspectorTest.invokeAsyncWithTimeline("performActions", finish);
29
30 function finish()
31 {
32 var event = model.mainThreadEvents().find(e => e.name === WebInspector.T imelineModel.RecordType.RunMicrotasks);
33 InspectorTest.printTraceEventProperties(event);
34 InspectorTest.completeTest();
35 }
36 }
37
38 </script>
39 </head>
40
41 <body onload="runTest()">
42 <p>
43 Checks the RunMicrotasks event is emitted.
44 </p>
45 </body>
46 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-microtasks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698