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/console-test.js"></script> | 4 <script src="../../../http/tests/inspector/console-test.js"></script> |
5 <script src="../../../http/tests/inspector/timeline-test.js"></script> | 5 <script src="../../../http/tests/inspector/timeline-test.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 function test() | 8 function test() |
9 { | 9 { |
10 var panel = UI.panels.timeline; | 10 var panel = UI.panels.timeline; |
11 | 11 |
12 var callbackBarrier = new CallbackBarrier(); | 12 var callbackBarrier = new CallbackBarrier(); |
13 InspectorTest.addSniffer(panel, "recordingStarted", recordingStarted); | 13 InspectorTest.addSniffer(panel, "_recordingStarted", recordingStarted); |
14 InspectorTest.runWhenTimelineIsReady(callbackBarrier.createCallback()); | 14 InspectorTest.runWhenTimelineIsReady(callbackBarrier.createCallback()); |
15 | 15 |
16 UI.viewManager.showView("console"); | 16 UI.viewManager.showView("console"); |
17 InspectorTest.runWhenPageLoads(step1); | 17 InspectorTest.runWhenPageLoads(step1); |
18 InspectorTest.addResult("Reloading page on console panel"); | 18 InspectorTest.addResult("Reloading page on console panel"); |
19 panel._millisecondsToRecordAfterLoadEvent = 1; | 19 panel._millisecondsToRecordAfterLoadEvent = 1; |
20 InspectorTest.resourceTreeModel.reloadPage(); | 20 InspectorTest.resourceTreeModel.reloadPage(); |
21 | 21 |
22 function step1() | 22 function step1() |
23 { | 23 { |
(...skipping 18 matching lines...) Expand all Loading... |
42 } | 42 } |
43 | 43 |
44 </script> | 44 </script> |
45 </head> | 45 </head> |
46 | 46 |
47 <body onload="runTest()"> | 47 <body onload="runTest()"> |
48 <p>Test auto-recording of Timeline.</p> | 48 <p>Test auto-recording of Timeline.</p> |
49 | 49 |
50 </body> | 50 </body> |
51 </html> | 51 </html> |
OLD | NEW |