| 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 TestTimelineLifecycleDelegate = function() | 9 TestTimelineLifecycleDelegate = function() |
| 10 { | 10 { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 if (this._hadLoadingProgress) | 36 if (this._hadLoadingProgress) |
| 37 return; | 37 return; |
| 38 this._hadLoadingProgress = true; | 38 this._hadLoadingProgress = true; |
| 39 InspectorTest.addResult("TimelineLifecycleDelegate.loadingProgress")
; | 39 InspectorTest.addResult("TimelineLifecycleDelegate.loadingProgress")
; |
| 40 }, | 40 }, |
| 41 | 41 |
| 42 loadingComplete: function() | 42 loadingComplete: function() |
| 43 { | 43 { |
| 44 InspectorTest.addResult("TimelineLifecycleDelegate.loadingComplete")
; | 44 InspectorTest.addResult("TimelineLifecycleDelegate.loadingComplete")
; |
| 45 InspectorTest.completeTest(); | 45 InspectorTest.completeTest(); |
| 46 }, | 46 } |
| 47 | |
| 48 __proto__: Timeline.TimelineLifecycleDelegate | |
| 49 }; | 47 }; |
| 50 | 48 |
| 51 var controller = new Timeline.TimelineController(SDK.targetManager.mainTarge
t(), new TestTimelineLifecycleDelegate(), InspectorTest.createTracingModel()); | 49 var controller = new Timeline.TimelineController(SDK.targetManager.mainTarge
t(), new TestTimelineLifecycleDelegate(), InspectorTest.createTracingModel()); |
| 52 controller.startRecording(); | 50 controller.startRecording({}, []); |
| 53 } | 51 } |
| 54 | 52 |
| 55 </script> | 53 </script> |
| 56 </head> | 54 </head> |
| 57 | 55 |
| 58 <body onload="runTest()"> | 56 <body onload="runTest()"> |
| 59 <p> | 57 <p> |
| 60 Tests that buffer usage update are sent when recording trace events and | 58 Tests that buffer usage update are sent when recording trace events and |
| 61 TimelineLifecycleDelegate methods are properly invoked in the expected order. | 59 TimelineLifecycleDelegate methods are properly invoked in the expected order. |
| 62 </p> | 60 </p> |
| 63 </body> | 61 </body> |
| 64 </html> | 62 </html> |
| OLD | NEW |