| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../LayoutTests/http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../LayoutTests/http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="performance-test.js"></script> | 4 <script src="performance-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 WebInspector.showPanel("audits"); | 9 WebInspector.showPanel("audits"); |
| 10 | 10 |
| 11 | 11 |
| 12 function test(timer) | 12 function test(timer) |
| 13 { | 13 { |
| 14 WebInspector.showPanel("audits"); | 14 WebInspector.showPanel("audits"); |
| 15 WebInspector.domAgent._setDocument(null); | 15 WebInspector.domModel._setDocument(null); |
| 16 | 16 |
| 17 var showPanelTimerCookie = timer.start("first-open-elements"); | 17 var showPanelTimerCookie = timer.start("first-open-elements"); |
| 18 InspectorTest.addBackendResponseSniffer(DOMAgent, "requestChildNodes", f
unction() { | 18 InspectorTest.addBackendResponseSniffer(DOMAgent, "requestChildNodes", f
unction() { |
| 19 timer.finish(showPanelTimerCookie); | 19 timer.finish(showPanelTimerCookie); |
| 20 timer.done("first-open"); | 20 timer.done("first-open"); |
| 21 }); | 21 }); |
| 22 WebInspector.showPanel("elements"); | 22 WebInspector.showPanel("elements"); |
| 23 } | 23 } |
| 24 | 24 |
| 25 InspectorTest.runPerformanceTest(test, 5000); | 25 InspectorTest.runPerformanceTest(test, 5000); |
| 26 } | 26 } |
| 27 | 27 |
| 28 </script> | 28 </script> |
| 29 </head> | 29 </head> |
| 30 | 30 |
| 31 <body onload="runTest()"> | 31 <body onload="runTest()"> |
| 32 | 32 |
| 33 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> | 33 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> |
| 34 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> | 34 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> |
| 35 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> | 35 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> |
| 36 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> | 36 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> |
| 37 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> | 37 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> |
| 38 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> | 38 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><di
v></div><div></div><div></div> |
| 39 | 39 |
| 40 </body> | 40 </body> |
| 41 </body> | 41 </body> |
| 42 </html> | 42 </html> |
| OLD | NEW |