Title: [103713] trunk/LayoutTests
- Revision
- 103713
- Author
- [email protected]
- Date
- 2011-12-27 09:47:38 -0800 (Tue, 27 Dec 2011)
Log Message
Web Inspector: inspector/dom-statistics.html test fails on Chromium
https://bugs.webkit.org/show_bug.cgi?id=75258
Disable inspector/dom-statistics.html for now until we finalize MemoryAgent functionality.
Reviewed by Pavel Feldman.
* inspector/dom-statistics.html-disabled: Renamed from LayoutTests/inspector/dom-statistics.html.
Modified Paths
Added Paths
Removed Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (103712 => 103713)
--- trunk/LayoutTests/ChangeLog 2011-12-27 17:46:48 UTC (rev 103712)
+++ trunk/LayoutTests/ChangeLog 2011-12-27 17:47:38 UTC (rev 103713)
@@ -1,3 +1,14 @@
+2011-12-27 Yury Semikhatsky <[email protected]>
+
+ Web Inspector: inspector/dom-statistics.html test fails on Chromium
+ https://bugs.webkit.org/show_bug.cgi?id=75258
+
+ Disable inspector/dom-statistics.html for now until we finalize MemoryAgent functionality.
+
+ Reviewed by Pavel Feldman.
+
+ * inspector/dom-statistics.html-disabled: Renamed from LayoutTests/inspector/dom-statistics.html.
+
2011-12-27 Pavel Feldman <[email protected]>
Web Inspector: add more annotations on SDK classes.
Deleted: trunk/LayoutTests/inspector/dom-statistics.html (103712 => 103713)
--- trunk/LayoutTests/inspector/dom-statistics.html 2011-12-27 17:46:48 UTC (rev 103712)
+++ trunk/LayoutTests/inspector/dom-statistics.html 2011-12-27 17:47:38 UTC (rev 103713)
@@ -1,84 +0,0 @@
-<html>
-<head>
-<script src=""
-<script>
-
-function test()
-{
- function callback(error, result)
- {
- for (var i = 0; i < result.length; i++) {
- var url = ""
- if (!url)
- continue;
- var index = url.lastIndexOf("/");
- if (index != -1)
- url = "" + 1);
- result[i].documentURI = "..." + url;
-
- result[i].nodeCount.sort(function(a, b) {
- return a.nodeName.localeCompare(b.nodeName);
- });
- result[i].listenerCount.sort(function(a, b) {
- return a.type.localeCompare(b.type);
- });
- }
-
- function stringCompare(a, b)
- {
- if (a && b)
- return a.localeCompare(b);
- if (!a && !b)
- return 0;
- if (a)
- return 1;
- return -1;
- }
-
- result.sort(function(a, b) {
- var r = stringCompare(a.documentURI, b.documentURI);
- if (r)
- return r;
- return stringCompare(a.title, b.title);
- });
-
- InspectorTest.addResult("result = " + JSON.stringify(result, null, 4));
- InspectorTest.completeTest();
- }
- MemoryAgent.getDOMNodeCount(callback);
-}
-
-var detachedDivs = [];
-function createDetachedNode()
-{
- var detachedDiv = document.createElement("div");
- detachedDiv.addEventListener("click", function(e) {});
- detachedDiv.addEventListener("mouseover", function(e) {});
- detachedDiv.appendChild(document.createElement("div"));
- return detachedDiv;
-}
-
-function prepareAndRunTest()
-{
- var p = document.getElementById("paragraph");
- p.addEventListener("click", function(e) {});
- p.addEventListener("mouseover", function(e) {});
- document.body.appendChild(document.createElement("div"));
- detachedDivs.push(createDetachedNode());
- detachedDivs.push(createDetachedNode());
-
- runTest();
-}
-
-</script>
-</head>
-
-<body _onload_="prepareAndRunTest()">
-<iframe src=""
-<p id="paragraph" _onclick_="alert(1)">
-Tests that per document Node count is correctly calculated by the Memory agent.
-<a href="" 74100.</a>
-<a href="" 74298.</a>
-</p>
-</body>
-</html>
Copied: trunk/LayoutTests/inspector/dom-statistics.html-disabled (from rev 103711, trunk/LayoutTests/inspector/dom-statistics.html) (0 => 103713)
--- trunk/LayoutTests/inspector/dom-statistics.html-disabled (rev 0)
+++ trunk/LayoutTests/inspector/dom-statistics.html-disabled 2011-12-27 17:47:38 UTC (rev 103713)
@@ -0,0 +1,84 @@
+<html>
+<head>
+<script src=""
+<script>
+
+function test()
+{
+ function callback(error, result)
+ {
+ for (var i = 0; i < result.length; i++) {
+ var url = ""
+ if (!url)
+ continue;
+ var index = url.lastIndexOf("/");
+ if (index != -1)
+ url = "" + 1);
+ result[i].documentURI = "..." + url;
+
+ result[i].nodeCount.sort(function(a, b) {
+ return a.nodeName.localeCompare(b.nodeName);
+ });
+ result[i].listenerCount.sort(function(a, b) {
+ return a.type.localeCompare(b.type);
+ });
+ }
+
+ function stringCompare(a, b)
+ {
+ if (a && b)
+ return a.localeCompare(b);
+ if (!a && !b)
+ return 0;
+ if (a)
+ return 1;
+ return -1;
+ }
+
+ result.sort(function(a, b) {
+ var r = stringCompare(a.documentURI, b.documentURI);
+ if (r)
+ return r;
+ return stringCompare(a.title, b.title);
+ });
+
+ InspectorTest.addResult("result = " + JSON.stringify(result, null, 4));
+ InspectorTest.completeTest();
+ }
+ MemoryAgent.getDOMNodeCount(callback);
+}
+
+var detachedDivs = [];
+function createDetachedNode()
+{
+ var detachedDiv = document.createElement("div");
+ detachedDiv.addEventListener("click", function(e) {});
+ detachedDiv.addEventListener("mouseover", function(e) {});
+ detachedDiv.appendChild(document.createElement("div"));
+ return detachedDiv;
+}
+
+function prepareAndRunTest()
+{
+ var p = document.getElementById("paragraph");
+ p.addEventListener("click", function(e) {});
+ p.addEventListener("mouseover", function(e) {});
+ document.body.appendChild(document.createElement("div"));
+ detachedDivs.push(createDetachedNode());
+ detachedDivs.push(createDetachedNode());
+
+ runTest();
+}
+
+</script>
+</head>
+
+<body _onload_="prepareAndRunTest()">
+<iframe src=""
+<p id="paragraph" _onclick_="alert(1)">
+Tests that per document Node count is correctly calculated by the Memory agent.
+<a href="" 74100.</a>
+<a href="" 74298.</a>
+</p>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes