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

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

Issue 2161253002: DevTools: Use proper target when processing worker thread events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments. Created 4 years, 5 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-causes.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 function performActions(callback) 9 function performActions(callback)
10 { 10 {
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 var linkifier = new WebInspector.Linkifier(); 33 var linkifier = new WebInspector.Linkifier();
34 34
35 var recordTypes = new Set(["TimerInstall", "TimerRemove", "FunctionCall"]); 35 var recordTypes = new Set(["TimerInstall", "TimerRemove", "FunctionCall"]);
36 function formatter(event) 36 function formatter(event)
37 { 37 {
38 if (!recordTypes.has(event.name)) 38 if (!recordTypes.has(event.name))
39 return; 39 return;
40 40
41 var detailsText = WebInspector.TimelineUIUtils.buildDetailsTextForTraceE vent(event, InspectorTest.timelineModel().target()); 41 var detailsText = WebInspector.TimelineUIUtils.buildDetailsTextForTraceE vent(event, InspectorTest.timelineModel().targetByEvent(event));
42 InspectorTest.addResult("detailsTextContent for " + event.name + " event : '" + detailsText + "'"); 42 InspectorTest.addResult("detailsTextContent for " + event.name + " event : '" + detailsText + "'");
43 43
44 var details = WebInspector.TimelineUIUtils.buildDetailsNodeForTraceEvent (event, InspectorTest.timelineModel().target(), linkifier); 44 var details = WebInspector.TimelineUIUtils.buildDetailsNodeForTraceEvent (event, InspectorTest.timelineModel().targetByEvent(event), linkifier);
45 if (!details) 45 if (!details)
46 return; 46 return;
47 InspectorTest.addResult("details.textContent for " + event.name + " even t: '" + details.textContent.replace(/VM[\d]+/, "VM") + "'"); 47 InspectorTest.addResult("details.textContent for " + event.name + " even t: '" + details.textContent.replace(/VM[\d]+/, "VM") + "'");
48 } 48 }
49 49
50 function finish() 50 function finish()
51 { 51 {
52 InspectorTest.walkTimelineEventTree(formatter); 52 InspectorTest.walkTimelineEventTree(formatter);
53 InspectorTest.completeTest(); 53 InspectorTest.completeTest();
54 } 54 }
55 } 55 }
56 56
57 if (!window.testRunner) 57 if (!window.testRunner)
58 setTimeout(performActions, 2000); 58 setTimeout(performActions, 2000);
59 59
60 </script> 60 </script>
61 </head> 61 </head>
62 62
63 <body onload="runTest()"> 63 <body onload="runTest()">
64 <p> 64 <p>
65 Test that checks location resolving mechanics for TimerInstall TimerRemove and F unctionCall events with scriptId. 65 Test that checks location resolving mechanics for TimerInstall TimerRemove and F unctionCall events with scriptId.
66 </p><p> 66 </p><p>
67 It expects two FunctionCall for InjectedScript, two TimerInstall events, two Fun ctionCall events and one TimerRemove event to be logged with performActions.js s cript name and some line number. 67 It expects two FunctionCall for InjectedScript, two TimerInstall events, two Fun ctionCall events and one TimerRemove event to be logged with performActions.js s cript name and some line number.
68 </p> 68 </p>
69 </body> 69 </body>
70 </html> 70 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-causes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698