Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: third_party/WebKit/LayoutTests/inspector/dom-statistics.html-disabled

Issue 2566493004: [DevTools] removed inspector/dom-statistics.html-disabled (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/dom-statistics-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/dom-statistics.html-disabled
diff --git a/third_party/WebKit/LayoutTests/inspector/dom-statistics.html-disabled b/third_party/WebKit/LayoutTests/inspector/dom-statistics.html-disabled
deleted file mode 100644
index 3f5e8e68932fd2046c1e5379cf66c67ce75c85f0..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/dom-statistics.html-disabled
+++ /dev/null
@@ -1,84 +0,0 @@
-<html>
-<head>
-<script src="../http/tests/inspector/inspector-test.js"></script>
-<script>
-
-function test()
-{
- function callback(error, result)
- {
- for (var i = 0; i < result.length; i++) {
- var url = result[i].documentURI;
- if (!url)
- continue;
- var index = url.lastIndexOf("/");
- if (index != -1)
- url = url.substring(index + 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="about:blank"></iframe>
-<p id="paragraph" onclick="alert(1)">
-Tests that per document Node count is correctly calculated by the Memory agent.
-<a href="https://bugs.webkit.org/show_bug.cgi?id=74100">Bug 74100.</a>
-<a href="https://bugs.webkit.org/show_bug.cgi?id=74298">Bug 74298.</a>
-</p>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/dom-statistics-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698