Title: [95625] trunk/LayoutTests
Revision
95625
Author
loi...@chromium.org
Date
2011-09-21 07:06:45 -0700 (Wed, 21 Sep 2011)

Log Message

Web Inspector: UI performance test for Resource panel first open experience.
https://bugs.webkit.org/show_bug.cgi?id=68527

Reviewed by Pavel Feldman.

* inspector/performance/resources/first-open-resources.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (95624 => 95625)


--- trunk/LayoutTests/ChangeLog	2011-09-21 14:04:24 UTC (rev 95624)
+++ trunk/LayoutTests/ChangeLog	2011-09-21 14:06:45 UTC (rev 95625)
@@ -1,5 +1,14 @@
 2011-09-21  Ilya Tikhonovsky  <loi...@chromium.org>
 
+        Web Inspector: UI performance test for Resource panel first open experience.
+        https://bugs.webkit.org/show_bug.cgi?id=68527
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/performance/resources/first-open-resources.html: Added.
+
+2011-09-21  Ilya Tikhonovsky  <loi...@chromium.org>
+
         Web Inspector: extend UI perf tests coverage. Elements panel opens first time.
         https://bugs.webkit.org/show_bug.cgi?id=68432
 

Added: trunk/LayoutTests/inspector/performance/resources/first-open-resources.html (0 => 95625)


--- trunk/LayoutTests/inspector/performance/resources/first-open-resources.html	                        (rev 0)
+++ trunk/LayoutTests/inspector/performance/resources/first-open-resources.html	2011-09-21 14:06:45 UTC (rev 95625)
@@ -0,0 +1,36 @@
+<html>
+<head>
+<script src=""
+<script src=""
+<script>
+
+function test()
+{
+    WebInspector.showPanel("resources");
+    WebInspector.settings.resourcesLastSelectedItem.set(WebInspector.mainResource._documentURL);
+
+    function test(timer)
+    {
+        WebInspector.showPanel("audits");
+
+        var showPanelTimerCookie = timer.start("resources-panel-show");
+        InspectorTest.addBackendResponseSniffer(PageAgent, "getResourceContent", function() {
+            timer.finish(showPanelTimerCookie);
+            timer.done();
+        });
+        WebInspector.panels.resources._resetResourcesTree();
+        WebInspector.resourceTreeModel.frontendReused();
+        WebInspector.showPanel("resources");
+    }
+
+    InspectorTest.runPerformanceTest(test, 5000);
+}
+
+</script>
+</head>
+
+<body _onload_="runTest()">
+</body>
+</body>
+</html>
+
Property changes on: trunk/LayoutTests/inspector/performance/resources/first-open-resources.html
___________________________________________________________________

Added: svn:eol-style

_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to