Add more Russian replay performance tests
[WebKit-https.git] / PerformanceTests / inspector / first-open-scripts.html.broken
1 <html>
2 <head>
3 <script src="../../LayoutTests/http/tests/inspector/inspector-test.js"></script>
4 <script src="performance-test.js"></script>
5 <script>
6
7 function test()
8 {
9     WebInspector.showPanel("scripts");
10     var files = WebInspector.panels.scripts._fileSelector._filesSelectElement;
11     for (var i = 0; i < files.options.length; ++i) {
12          if (files.options[i].value.indexOf("inspector-test.js") !== -1) {
13              files.selectedIndex = i;
14              WebInspector.panels.scripts._fileSelector._filesSelectChanged();
15              break;
16          }
17     }
18
19     function test(timer)
20     {
21         WebInspector.showPanel("audits");
22         var showPanelTimerCookie = timer.start("first-open-scripts");
23         WebInspector.showPanel("scripts");
24         var count = WebInspector.panels.scripts.visibleView._textEditor._mainPanel._textChunks.length;
25         WebInspector.panels.scripts.visibleView._textEditor._mainPanel._expandChunks(0, count);
26         WebInspector.panels.scripts.visibleView._textEditor._mainPanel._paintScheduledLines();
27         timer.finish(showPanelTimerCookie);
28         timer.done("first-open");
29     }
30
31     InspectorTest.runAfterPendingDispatches(InspectorTest.runPerformanceTest.bind(null, test, 5000));
32 }
33
34 </script>
35 </head>
36 <body onload="runTest()">
37 </body>
38 </html>
39