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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event.html

Issue 2637443004: DevTools: bring back old landing page in timeline/performance. (Closed)
Patch Set: review comments addressed Created 3 years, 11 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/frame-model-instrumentation.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="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../timeline-test.js"></script> 4 <script src="../timeline-test.js"></script>
5 <script> 5 <script>
6 6
7 function performActions() 7 function performActions()
8 { 8 {
9 var callback; 9 var callback;
10 var promise = new Promise((fulfill) => callback = fulfill); 10 var promise = new Promise((fulfill) => callback = fulfill);
(...skipping 10 matching lines...) Expand all
21 image.src = "resources/anotherImage.png?random=" + random; 21 image.src = "resources/anotherImage.png?random=" + random;
22 } 22 }
23 return promise; 23 return promise;
24 } 24 }
25 25
26 function test() 26 function test()
27 { 27 {
28 UI.viewManager.showView("timeline"); 28 UI.viewManager.showView("timeline");
29 const panel = UI.panels.timeline; 29 const panel = UI.panels.timeline;
30 panel._model._currentTarget = SDK.targetManager.mainTarget(); 30 panel._model._currentTarget = SDK.targetManager.mainTarget();
31 panel._landingPage._tabbedPane.selectTab(Timeline.TimelineLandingPage.PageId .Advanced); 31 panel._disableCaptureJSProfileSetting.set(true);
32 panel._captureJSProfileSetting.set(false);
33 InspectorTest.invokeAsyncWithTimeline("performActions", finish); 32 InspectorTest.invokeAsyncWithTimeline("performActions", finish);
34 33
35 function finish() 34 function finish()
36 { 35 {
37 var recordTypes = TimelineModel.TimelineModel.RecordType; 36 var recordTypes = TimelineModel.TimelineModel.RecordType;
38 var typesToDump = new Set([recordTypes.ResourceSendRequest, recordTypes. ResourceReceiveResponse, recordTypes.ResourceReceivedData, recordTypes.ResourceF inish, 37 var typesToDump = new Set([recordTypes.ResourceSendRequest, recordTypes. ResourceReceiveResponse, recordTypes.ResourceReceivedData, recordTypes.ResourceF inish,
39 recordTypes.EventDispatch, recordTypes.FunctionCall]); 38 recordTypes.EventDispatch, recordTypes.FunctionCall]);
40 let hasAlreadyDumptReceivedDataFor = new Map(); 39 let hasAlreadyDumptReceivedDataFor = new Map();
41 function dumpEvent(traceEvent, level) 40 function dumpEvent(traceEvent, level)
42 { 41 {
(...skipping 25 matching lines...) Expand all
68 </script> 67 </script>
69 </head> 68 </head>
70 69
71 <body onload="runTest()"> 70 <body onload="runTest()">
72 <p> 71 <p>
73 Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc. 72 Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc.
74 </p> 73 </p>
75 74
76 </body> 75 </body>
77 </html> 76 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/frame-model-instrumentation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698