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

Unified Diff: LayoutTests/fast/dom/Attr/child-nodes-length-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-length-cache.html
diff --git a/LayoutTests/fast/dom/Attr/child-nodes-length-cache.html b/LayoutTests/fast/dom/Attr/child-nodes-length-cache.html
deleted file mode 100644
index f63ef5a5e1af7a325068026032f9c2654d5066f1..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/Attr/child-nodes-length-cache.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<html>
-<head>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-function onLoad()
-{
- var theDiv = document.getElementById("theDiv");
- var theAttrs = theDiv.attributes;
-
- var nameAttr = theAttrs.getNamedItem("name");
- var nameAttrChildNodes = nameAttr.childNodes;
- var textNode = document.createTextNode("terday");
- var unused = nameAttrChildNodes.length;
- nameAttr.appendChild(textNode);
-
- var name2Attr = theAttrs.getNamedItem("name2");
- var name2AttrChildNodes = name2Attr.childNodes;
- var textNode2 = document.createTextNode("terday");
- name2Attr.appendChild(textNode2);
-
- if (nameAttrChildNodes.length != name2AttrChildNodes.length)
- document.getElementById("result").innerHTML = "Failed: nameAttrChildNodes.length=" + nameAttrChildNodes.length + ", name2AttrChildNodes.length=" + name2AttrChildNodes.length;
- else
- document.getElementById("result").innerHTML = "Passed!!";
-
- document.body.removeChild(document.getElementById("theDiv"));
-}
-</script>
-</head>
-<body onload="onLoad();">
-<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=19759">bug 19759</a>:
-ChildNodeList for an attribute node is not properly invalidated after appending a child.</p>
-<div id="theDiv" name="Yes" name2="Yes">Hello</div>
-<div id="result">Testing...</div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698