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/tracing/timeline-js/timeline-open-function-call.html

Issue 2335973002: DevTools: Auto close open sync trace events. (Closed)
Patch Set: 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-open-function-call-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 function test()
8 {
9 var sessionId = "6.23";
10 var rawTraceEvents = [
11 {
12 "args": {
13 "name": "Renderer"
14 },
15 "cat": "__metadata",
16 "name": "process_name",
17 "ph": "M",
18 "pid": 17851,
19 "tid": 23,
20 "ts": 0
21 },
22 {
23 "args": {
24 "name": "CrRendererMain"
25 },
26 "cat": "__metadata",
27 "name": "thread_name",
28 "ph": "M",
29 "pid": 17851,
30 "tid": 23,
31 "ts": 0
32 },
33 {
34 "args": {
35 "sessionId": sessionId
36 },
37 "cat": "disabled-by-default-devtools.timeline",
38 "name": "TracingStartedInPage",
39 "ph": "I",
40 "pid": 17851,
41 "tid": 23,
42 "ts": 100000,
43 "tts": 606543
44 },
45 {
46 "cat": "disabled-by-default-devtools.timeline",
47 "name": "FunctionCall",
48 "ph": "B",
49 "pid": 17851,
50 "tid": 23,
51 "ts": 101000,
52 "args": {}
53 },
54 {
55 "cat": "disabled-by-default-devtools.timeline",
56 "name": "JSSample",
57 "ph": "I",
58 "pid": 17851,
59 "tid": 23,
60 "ts": 142000,
61 "args": {}
62 }];
63
64 var model = InspectorTest.createTimelineModelWithEvents(rawTraceEvents);
65 var event = model.mainThreadEvents().find(e => e.name === WebInspector.Timel ineModel.RecordType.FunctionCall);
66 InspectorTest.addResult(`${event.startTime} ${event.endTime}`);
67 InspectorTest.completeTest();
68 }
69
70 </script>
71 </head>
72
73 <body onload="runTest()">
74 <p>
75 Checks the FunctionCall with no closing event processed properly.
76 </p>
77 </body>
78 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-open-function-call-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698