Lines Matching refs:childNodes

103         elem = root.childNodes[0]
106 self.confirm(len(root.childNodes) == 2
107 and root.childNodes.length == 2
108 and root.childNodes[0] is nelem
109 and root.childNodes.item(0) is nelem
110 and root.childNodes[1] is elem
111 and root.childNodes.item(1) is elem
118 self.confirm(len(root.childNodes) == 3
119 and root.childNodes.length == 3
120 and root.childNodes[1] is elem
121 and root.childNodes.item(1) is elem
122 and root.childNodes[2] is nelem
123 and root.childNodes.item(2) is nelem
130 self.confirm(len(root.childNodes) == 4
131 and root.childNodes.length == 4
132 and root.childNodes[2] is nelem2
133 and root.childNodes.item(2) is nelem2
134 and root.childNodes[3] is nelem
135 and root.childNodes.item(3) is nelem
159 self.confirm(tuple(dom.documentElement.childNodes) ==
167 self.confirm(tuple(dom.documentElement.childNodes) ==
176 self.confirm(dom.documentElement.childNodes[-1].nodeName == "#comment")
177 self.confirm(dom.documentElement.childNodes[-1].data == "Hello")
183 self.confirm(tuple(dom.documentElement.childNodes) ==
193 self.confirm(tuple(dom.documentElement.childNodes) == (c1, c2, c3),
240 self.confirm(not dom.childNodes[-1].childNodes)
245 self.assertTrue(dom.childNodes)
247 self.assertFalse(dom.childNodes)
251 self.assertTrue(dom.childNodes)
252 self.assertFalse(dom.childNodes)
547 dom.getElementsByTagName('B')[0].childNodes[0].toxml(),
548 dom2.getElementsByTagName('B')[0].childNodes[0].toxml())
559 and len(pi.childNodes) == 0
686 self.confirm(len(clone.childNodes) == 0
687 and clone.childNodes.length == 0
695 self.confirm(len(clone.childNodes) == 1
696 and clone.childNodes.length == 1
724 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
751 and len(clone.childNodes) == 0)
790 and len(clone.childNodes) == 0)
912 self.confirm(len(root.childNodes) == 2
913 and root.childNodes.length == 2,
916 self.confirm(len(root.childNodes) == 1
917 and root.childNodes.length == 1
927 self.confirm(len(root.childNodes) == 0
928 and root.childNodes.length == 0,
938 self.confirm(len(root.childNodes) == 3
939 and root.childNodes.length == 3,
942 self.confirm(len(root.childNodes) == 2
943 and root.childNodes.length == 2
958 self.confirm(len(root.childNodes) == 2
959 and root.childNodes.length == 2,
962 self.confirm(len(root.childNodes) == 1
963 and root.childNodes.length == 1
976 self.confirm(len(root.childNodes) == 2
977 and root.childNodes.length == 2,
980 self.confirm(len(root.childNodes) == 1
981 and root.childNodes.length == 1
995 self.confirm(len(root.childNodes) == 3
996 and root.childNodes.length == 3,
999 self.confirm(len(root.childNodes) == 2
1000 and root.childNodes.length == 2
1017 self.confirm(len(root.childNodes) == 5
1018 and root.childNodes.length == 5,
1021 self.confirm(len(root.childNodes) == 1
1022 and root.childNodes.length == 1
1049 root.childNodes[0].appendChild(doc.createTextNode(""))
1050 root.childNodes[0].appendChild(doc.createTextNode("x"))
1051 root.childNodes[1].childNodes[0].appendChild(doc.createTextNode("x2"))
1052 root.childNodes[1].appendChild(doc.createTextNode("x3"))
1054 self.confirm(len(root.childNodes) == 3
1055 and root.childNodes.length == 3
1056 and len(root.childNodes[0].childNodes) == 4
1057 and root.childNodes[0].childNodes.length == 4
1058 and len(root.childNodes[1].childNodes) == 3
1059 and root.childNodes[1].childNodes.length == 3
1060 and len(root.childNodes[1].childNodes[0].childNodes) == 2
1061 and root.childNodes[1].childNodes[0].childNodes.length == 2
1064 self.confirm(len(root.childNodes) == 2
1065 and root.childNodes.length == 2
1066 and len(root.childNodes[0].childNodes) == 2
1067 and root.childNodes[0].childNodes.length == 2
1068 and len(root.childNodes[1].childNodes) == 2
1069 and root.childNodes[1].childNodes.length == 2
1070 and len(root.childNodes[1].childNodes[0].childNodes) == 1
1071 and root.childNodes[1].childNodes[0].childNodes.length == 1
1072 , "testNormalize2 -- childNodes lengths")
1073 self.confirm(root.childNodes[0].childNodes[1].data == "tx"
1074 and root.childNodes[1].childNodes[0].childNodes[0].data == "t2x2"
1075 and root.childNodes[1].childNodes[1].data == "t3x3"
1077 self.confirm(root.childNodes[0].childNodes[1].nextSibling is None
1078 and root.childNodes[0].childNodes[1].previousSibling
1079 is root.childNodes[0].childNodes[0]
1080 and root.childNodes[0].childNodes[0].previousSibling is None
1081 and root.childNodes[0].childNodes[0].nextSibling
1082 is root.childNodes[0].childNodes[1]
1083 and root.childNodes[1].childNodes[1].nextSibling is None
1084 and root.childNodes[1].childNodes[1].previousSibling
1085 is root.childNodes[1].childNodes[0]
1086 and root.childNodes[1].childNodes[0].previousSibling is None
1087 and root.childNodes[1].childNodes[0].nextSibling
1088 is root.childNodes[1].childNodes[1]
1095 text = doc.documentElement.childNodes[0]
1104 node.childNodes[1].nodeValue = ""
1106 self.confirm(node.childNodes[-1].nextSibling is None,
1112 (pi, text, elm) = root.childNodes
1127 elm1 = root.childNodes[0]
1128 (elm2a, elm2b) = elm1.childNodes
1129 elm3 = elm2b.childNodes[0]
1140 children = doc.childNodes
1144 and docelem.childNodes.item(0) is docelem.childNodes[0]
1145 and docelem.childNodes.item(1) is docelem.childNodes[1]
1146 and docelem.childNodes.item(0).childNodes.item(0) is None,
1365 text = elem.childNodes[0]
1422 self.confirm(len(elem.childNodes) == 3)
1428 self.confirm(len(elem.childNodes) == 5)
1434 and len(elem.childNodes) == 2)
1577 self.assertEqual(len(n1.childNodes), len(n2.childNodes))
1606 for i in range(len(n1.childNodes)):
1607 stack.append((n1.childNodes[i], n2.childNodes[i]))
1646 num_children_before = len(doc.childNodes)
1647 doc.removeChild(doc.childNodes[0])
1648 num_children_after = len(doc.childNodes)