Title: [95624] trunk/LayoutTests
- Revision
- 95624
- Author
- [email protected]
- Date
- 2011-09-21 07:04:24 -0700 (Wed, 21 Sep 2011)
Log Message
Web Inspector: extend UI perf tests coverage. Elements panel opens first time.
https://bugs.webkit.org/show_bug.cgi?id=68432
Reviewed by Pavel Feldman.
* inspector/performance/resources/first-open-elements.html: Added.
* inspector/performance/resources/performance-test.js:
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (95623 => 95624)
--- trunk/LayoutTests/ChangeLog 2011-09-21 13:53:16 UTC (rev 95623)
+++ trunk/LayoutTests/ChangeLog 2011-09-21 14:04:24 UTC (rev 95624)
@@ -1,3 +1,13 @@
+2011-09-21 Ilya Tikhonovsky <[email protected]>
+
+ Web Inspector: extend UI perf tests coverage. Elements panel opens first time.
+ https://bugs.webkit.org/show_bug.cgi?id=68432
+
+ Reviewed by Pavel Feldman.
+
+ * inspector/performance/resources/first-open-elements.html: Added.
+ * inspector/performance/resources/performance-test.js:
+
2011-09-21 Philippe Normand <[email protected]>
Unreviewed, skip some more flaky SVG tests on GTK.
Added: trunk/LayoutTests/inspector/performance/resources/first-open-elements.html (0 => 95624)
--- trunk/LayoutTests/inspector/performance/resources/first-open-elements.html (rev 0)
+++ trunk/LayoutTests/inspector/performance/resources/first-open-elements.html 2011-09-21 14:04:24 UTC (rev 95624)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script src=""
+<script src=""
+<script>
+
+function test()
+{
+ WebInspector.showPanel("audits");
+
+
+ function test(timer)
+ {
+ WebInspector.showPanel("audits");
+ WebInspector.domAgent._setDocument(null);
+
+ var showPanelTimerCookie = timer.start("elements-panel-show");
+ InspectorTest.addBackendResponseSniffer(DOMAgent, "requestChildNodes", function() {
+ timer.finish(showPanelTimerCookie);
+ timer.done();
+ });
+ WebInspector.showPanel("elements");
+ }
+
+ 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>
Property changes on: trunk/LayoutTests/inspector/performance/resources/first-open-elements.html
___________________________________________________________________
Added: svn:eol-style
Modified: trunk/LayoutTests/inspector/performance/resources/performance-test.js (95623 => 95624)
--- trunk/LayoutTests/inspector/performance/resources/performance-test.js 2011-09-21 13:53:16 UTC (rev 95623)
+++ trunk/LayoutTests/inspector/performance/resources/performance-test.js 2011-09-21 14:04:24 UTC (rev 95624)
@@ -70,4 +70,20 @@
timer._runTest();
}
+InspectorTest.addBackendResponseSniffer = function(object, methodName, override, opt_sticky)
+{
+ var originalMethod = InspectorTest.override(object, methodName, backendCall, opt_sticky);
+ function backendCall()
+ {
+ var args = Array.prototype.slice.call(arguments);
+ var callback = (args.length && typeof args[args.length - 1] === "function") ? args.pop() : 0;
+ args.push(function() {
+ callback.apply(null, arguments);
+ override.apply(null, arguments);
+ });
+ originalMethod.apply(object, args);
+ }
}
+
+
+}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes