| 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 src="resources/timeline-data.js"></script> | 5 <script src="resources/timeline-data.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 var timelineData = InspectorTest.timelineData(); | 10 var timelineData = InspectorTest.timelineData(); |
| 11 | 11 |
| 12 WebInspector.inspectorView.showPanel("timeline"); | 12 WebInspector.inspectorView.showPanel("timeline"); |
| 13 var timeline = WebInspector.panels.timeline; | 13 var timeline = WebInspector.inspectorView.panel("timeline"); |
| 14 | 14 |
| 15 var model = timeline._model; | 15 var model = timeline._model; |
| 16 | 16 |
| 17 function createFileReader(file, delegate) | 17 function createFileReader(file, delegate) |
| 18 { | 18 { |
| 19 return new InspectorTest.FakeFileReader(timelineData, delegate, model.sa
veToFile.bind(model)); | 19 return new InspectorTest.FakeFileReader(timelineData, delegate, model.sa
veToFile.bind(model)); |
| 20 } | 20 } |
| 21 | 21 |
| 22 InspectorTest.override(model, "_createFileReader", createFileReader); | 22 InspectorTest.override(model, "_createFileReader", createFileReader); |
| 23 | 23 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 39 </p> | 39 </p> |
| 40 | 40 |
| 41 <p> | 41 <p> |
| 42 We expect that TFO paints nothing after RecordsCleared event. | 42 We expect that TFO paints nothing after RecordsCleared event. |
| 43 The check point is the length of _barTimes array. | 43 The check point is the length of _barTimes array. |
| 44 </p> | 44 </p> |
| 45 | 45 |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| 48 | 48 |
| OLD | NEW |