Unreviewed. Restore test that was removed during migration from LayoutTests folder.
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jan 2012 16:31:28 +0000 (16:31 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jan 2012 16:31:28 +0000 (16:31 +0000)
* inspector/first-open-resources.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104580 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/ChangeLog
PerformanceTests/inspector/first-open-resources.html [new file with mode: 0644]

index 786a7d6..bf1665c 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-10  Ilya Tikhonovsky  <loislo@chromium.org>
+
+        Unreviewed. Restore test that was removed during migration from LayoutTests folder.
+
+        * inspector/first-open-resources.html: Added.
+
 2012-01-09  Ilya Tikhonovsky  <loislo@chromium.org>
 
         Unreviewed test fix after r103683.
diff --git a/PerformanceTests/inspector/first-open-resources.html b/PerformanceTests/inspector/first-open-resources.html
new file mode 100644 (file)
index 0000000..719ebc3
--- /dev/null
@@ -0,0 +1,37 @@
+<html>
+<head>
+<script src="../../LayoutTests/http/tests/inspector/inspector-test.js"></script>
+<script src="performance-test.js"></script>
+<script>
+
+function test()
+{
+    WebInspector.showPanel("resources");
+console.log("test: " + WebInspector.inspectedPageURL);
+    WebInspector.settings.resourcesLastSelectedItem.set(WebInspector.inspectedPageURL);
+
+    function test(timer)
+    {
+        WebInspector.showPanel("audits");
+
+        var showPanelTimerCookie = timer.start("first-open-resources");
+        InspectorTest.addBackendResponseSniffer(PageAgent, "getResourceTree", function() {
+            timer.finish(showPanelTimerCookie);
+            timer.done("first-open");
+        });
+        WebInspector.panels.resources.reset();
+        WebInspector.panels.resources._initialized = false;
+        WebInspector.resourceTreeModel._fetchResourceTree();
+        WebInspector.showPanel("resources");
+    }
+
+    InspectorTest.runPerformanceTest(test, 5000);
+}
+
+</script>
+</head>
+<body onload="runTest()">
+</body>
+</body>
+</html>
+