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

Unified Diff: LayoutTests/fast/dom/Attr/child-nodes-cache.html

Issue 1158433004: Remove Attr child nodes (making Attr a Node, not a ContainerNode) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address feedback Created 5 years, 7 months 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
Index: LayoutTests/fast/dom/Attr/child-nodes-cache.html
diff --git a/LayoutTests/fast/dom/Attr/child-nodes-cache.html b/LayoutTests/fast/dom/Attr/child-nodes-cache.html
deleted file mode 100644
index cb982b29f92e9e202f3d3c33574fcfe44a38ab2e..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/Attr/child-nodes-cache.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<body onload="test()">
-<p>Running test...</p>
-<textarea id=t rows=20>textarea</textarea>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-function gc()
-{
- if (window.GCController)
- return GCController.collect();
-
- for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
- var s = new String("abc");
- }
-}
-
-function test()
-{
- var elem = document.getElementById("t");
- var nodes = document.getElementById("t").getAttributeNode('rows').childNodes;
- nodes[0]; // Prime the child node cache.
- document.body.removeChild(document.getElementById("t"));
- elem.getAttributeNode('rows').removeChild(nodes[0]);
- setTimeout(function() {
- gc();
- try { nodes[0].textContent } catch (ex) { }
-
- document.getElementsByTagName("p")[0].innerHTML = "PASS"
- if (window.testRunner)
- testRunner.notifyDone();
- }, 0);
-}
-</script>

Powered by Google App Engine
This is Rietveld 408576698