Web Inspector: generic performance UI test for panel switch.
[WebKit-https.git] / LayoutTests / inspector / performance / resources / show-panel.html
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="performance-test.js"></script>
5 <script>
6
7 function test()
8 {
9     WebInspector.showPanel("audits");
10
11     InspectorTest.runPerformanceTest(perfTest, 10000);
12     function perfTest(timer)
13     {
14         WebInspector.showPanel("audits");
15         for (var panelName in WebInspector.panels) {
16             var timerCookie = timer.start("show-panel-" + panelName);
17             WebInspector.showPanel(panelName);
18             layoutTestController.display();
19             timer.finish(timerCookie);
20         }
21         timer.done();
22     }
23 }
24 </script>
25 </head>
26
27 <body onload="runTest()">
28 </body>
29 </html>