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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-details.html

Issue 2859343002: DevTools: Add Product field in timeline event details. (Closed)
Patch Set: addressing comments Created 3 years, 7 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-misc/timeline-event-details-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 async 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": "EvaluateScript",
48 "ph": "X",
49 "pid": 17851,
50 "tid": 23,
51 "ts": 101000,
52 "dur": 10000,
53 "args": {
54 "data": {
55 "url": "https://www.google.com",
56 "lineNumber": 1337
57 }
58 }
59 }];
60
61 var model = InspectorTest.createPerformanceModelWithEvents(rawTraceEvents).t imelineModel();
62 var linkifier = new Components.Linkifier();
63 for (var event of model.mainThreadEvents()) {
64 var node = await Timeline.TimelineUIUtils.buildTraceEventDetails(event, model, linkifier);
65 for (var child of node.querySelectorAll(".timeline-details-view-row"))
66 InspectorTest.addResult(`${child.firstChild.innerText}: ${child.last Child.innerText}`);
67 }
68 InspectorTest.completeTest();
69 }
70
71 </script>
72 </head>
73
74 <body onload="runTest()">
75 <p>
76 Checks the Product property in details pane for a node with URL.
77 </p>
78 </body>
79 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-details-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698