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 function runTestWithDataAndCheck(input, expectedOutput) | 9 function runTestWithDataAndCheck(input, expectedOutput) |
10 { | 10 { |
11 WebInspector.inspectorView.showPanel("timeline"); | 11 WebInspector.inspectorView.showPanel("timeline"); |
12 var model = new WebInspector.TimelineModel(WebInspector.timelineManager)
; | 12 var model = new WebInspector.TimelineModelImpl(WebInspector.timelineMana
ger); |
13 | 13 |
14 function createFileReader(file, delegate) | 14 function createFileReader(file, delegate) |
15 { | 15 { |
16 return new InspectorTest.FakeFileReader(input, delegate, model.saveT
oFile.bind(model)); | 16 return new InspectorTest.FakeFileReader(input, delegate, model.saveT
oFile.bind(model)); |
17 } | 17 } |
18 | 18 |
19 function createFileWriter() | 19 function createFileWriter() |
20 { | 20 { |
21 return new InspectorTest.StringOutputStream(checkSaveData); | 21 return new InspectorTest.StringOutputStream(checkSaveData); |
22 } | 22 } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 <p> | 87 <p> |
88 Tests the Timeline save/load functionality. | 88 Tests the Timeline save/load functionality. |
89 </p> | 89 </p> |
90 | 90 |
91 <p> | 91 <p> |
92 Also tests save/load of unknown (incompatible) record types. <a href="https://bu
gs.webkit.org/show_bug.cgi?id=91714">(Bug 91714)</a> | 92 Also tests save/load of unknown (incompatible) record types. <a href="https://bu
gs.webkit.org/show_bug.cgi?id=91714">(Bug 91714)</a> |
93 </p> | 93 </p> |
94 | 94 |
95 </body> | 95 </body> |
96 </html> | 96 </html> |
OLD | NEW |