| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |