Web Inspector: extend UI perf tests coverage. Elements Panel.
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Sep 2011 13:33:23 +0000 (13:33 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Sep 2011 13:33:23 +0000 (13:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=68263

Reviewed by Pavel Feldman.

* inspector/performance/resources/show-panel-elements.html: Added.

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

LayoutTests/ChangeLog
LayoutTests/inspector/performance/resources/show-panel-elements.html [new file with mode: 0644]

index 38b5c3f6f2c3f50beb71e947a0f2299cd412c724..2703e140c5e2d5cbe50190ed1d64a6a7c923265f 100644 (file)
@@ -1,3 +1,12 @@
+2011-09-19  Ilya Tikhonovsky  <loislo@chromium.org>
+
+        Web Inspector: extend UI perf tests coverage. Elements Panel.
+        https://bugs.webkit.org/show_bug.cgi?id=68263
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/performance/resources/show-panel-elements.html: Added.
+
 2011-09-19  Ilya Tikhonovsky  <loislo@chromium.org>
 
         Web Inspector: didMarkDOMContentEvent() should send event of MarkDOMContent type.
diff --git a/LayoutTests/inspector/performance/resources/show-panel-elements.html b/LayoutTests/inspector/performance/resources/show-panel-elements.html
new file mode 100644 (file)
index 0000000..fe8109e
--- /dev/null
@@ -0,0 +1,37 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="performance-test.js"></script>
+<script>
+
+function test()
+{
+    WebInspector.showPanel("audits");
+
+    function test(timer)
+    {
+        WebInspector.showPanel("audits");
+        var timerCookie = timer.start("show-elements-panel");
+        WebInspector.showPanel("elements");
+        timer.finish(timerCookie);
+        timer.done();
+    }
+
+    InspectorTest.runPerformanceTest(test, 5000);
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+
+<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
+<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
+<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
+<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
+<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
+<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
+
+</body>
+</body>
+</html>