| OLD | NEW |
| 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 var panel = WebInspector.inspectorView.panel("timeline"); | 9 var panel = WebInspector.inspectorView.panel("timeline"); |
| 10 var model = panel._model; | 10 var model = panel._model; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 WebInspector.inspectorView.showPanel("timeline"); | 23 WebInspector.inspectorView.showPanel("timeline"); |
| 24 InspectorTest.runWhenPageLoads(callbackBarrier.createCallback()); | 24 InspectorTest.runWhenPageLoads(callbackBarrier.createCallback()); |
| 25 callbackBarrier.callWhenDone(recordingStopped); | 25 callbackBarrier.callWhenDone(recordingStopped); |
| 26 InspectorTest.addResult("Reloading page on timeline panel"); | 26 InspectorTest.addResult("Reloading page on timeline panel"); |
| 27 WebInspector.resourceTreeModel.reloadPage(); | 27 WebInspector.resourceTreeModel.reloadPage(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 function recordingStarted() | 30 function recordingStarted() |
| 31 { | 31 { |
| 32 InspectorTest.addResult("Recording started"); | 32 InspectorTest.addResult("Recording started"); |
| 33 InspectorTest.addResult("Initiated by user: " + model._clientInitiatedRe
cording); | 33 InspectorTest.addResult("Initiated by user: " + panel._userInitiatedReco
rding); |
| 34 } | 34 } |
| 35 | 35 |
| 36 function recordingStopped() | 36 function recordingStopped() |
| 37 { | 37 { |
| 38 InspectorTest.addResult("Recording stopped"); | 38 InspectorTest.addResult("Recording stopped"); |
| 39 InspectorTest.completeTest(); | 39 InspectorTest.completeTest(); |
| 40 } | 40 } |
| 41 } | 41 } |
| 42 | 42 |
| 43 </script> | 43 </script> |
| 44 </head> | 44 </head> |
| 45 | 45 |
| 46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
| 47 <p>Test auto-recording of Timeline.</p> | 47 <p>Test auto-recording of Timeline.</p> |
| 48 | 48 |
| 49 </body> | 49 </body> |
| 50 </html> | 50 </html> |
| OLD | NEW |