3 <script src=
"../../LayoutTests/http/tests/inspector/inspector-test.js"></script>
4 <script src=
"performance-test.js"></script>
9 WebInspector
.showPanel("resources");
10 WebInspector
.settings
.resourcesLastSelectedItem
.set(WebInspector
.inspectedPageURL
);
14 WebInspector
.showPanel("audits");
15 var resources
= WebInspector
.panels
.resources
;
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");
31 timer
.finish(showPanelTimerCookie
);
32 timer
.done("first-open");
35 InspectorTest
.runPerformanceTest(test
, 5000);
40 <body onload=
"runTest()">