Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / inspector / first-open-resources.html
blobcb96af6e68bea1329b49bc65e95a2563c250ae56
1 <html>
2 <head>
3 <script src="../../LayoutTests/http/tests/inspector/inspector-test.js"></script>
4 <script src="performance-test.js"></script>
5 <script>
7 function test()
9 WebInspector.showPanel("resources");
10 WebInspector.settings.resourcesLastSelectedItem.set(WebInspector.inspectedPageURL);
12 function test(timer)
14 WebInspector.showPanel("audits");
15 var resources = WebInspector.panels.resources;
16 resources.reset();
17 var treeModel = WebInspector.resourceTreeModel;
18 treeModel.removeEventListener(WebInspector.ResourceTreeModel.EventTypes.FrameAdded, resources._frameAdded, resources);
19 treeModel.removeEventListener(WebInspector.ResourceTreeModel.EventTypes.FrameNavigated, resources._frameNavigated, resources);
20 treeModel.removeEventListener(WebInspector.ResourceTreeModel.EventTypes.FrameDetached, resources._frameDetached, resources);
21 treeModel.removeEventListener(WebInspector.ResourceTreeModel.EventTypes.ResourceAdded, resources._resourceAdded, resources);
22 resources._initialized = false;
24 InspectorTest.addBackendResponseSniffer(ApplicationCacheAgent, "getFramesWithManifests", finish);
25 var showPanelTimerCookie = timer.start("first-open-resources");
26 treeModel._fetchResourceTree();
27 WebInspector.showPanel("resources");
29 function finish()
31 timer.finish(showPanelTimerCookie);
32 timer.done("first-open");
35 InspectorTest.runPerformanceTest(test, 5000);
38 </script>
39 </head>
40 <body onload="runTest()">
41 </body>
42 </body>
43 </html>