OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
4 <script src="../../http/tests/inspector/timeline-test.js"></script> | |
5 <script src="resources/timeline-data.js"></script> | |
6 <script> | |
7 | |
8 function test() | |
9 { | |
10 var timelineData = InspectorTest.timelineData(); | |
11 | |
12 var timeline = WebInspector.panels.timeline; | |
13 | |
14 var model = timeline._model; | |
15 | |
16 function createFileReader(file, delegate) | |
17 { | |
18 return new InspectorTest.FakeFileReader(timelineData, delegate, model.sa
veToFile.bind(model)); | |
19 } | |
20 | |
21 InspectorTest.override(model, "_createFileReader", createFileReader); | |
22 | |
23 model.loadFromFile({}, new WebInspector.Progress()); | |
24 timeline._overviewModeSetting.set("Frames"); | |
25 timeline._onModeChanged(); | |
26 timeline._model.reset(); | |
27 console.log("Expected count of barTimes is zero: " + timeline._overviewContr
ols[0]._barTimes.length); | |
28 | |
29 InspectorTest.completeTest(); | |
30 } | |
31 | |
32 </script> | |
33 </head> | |
34 | |
35 <body onload="runTest()"> | |
36 <p> | |
37 Test that check RecordsCleared event in TimelineFramesOverview. | |
38 </p> | |
39 | |
40 <p> | |
41 We expect that TFO paints nothing after RecordsCleared event. | |
42 The check point is the length of _barTimes array. | |
43 </p> | |
44 | |
45 </body> | |
46 </html> | |
47 | |
OLD | NEW |