Home | History | Annotate | Download | only in test

Lines Matching refs:childNodes

70         elem = root.childNodes[0]
73 self.confirm(len(root.childNodes) == 2
74 and root.childNodes.length == 2
75 and root.childNodes[0] is nelem
76 and root.childNodes.item(0) is nelem
77 and root.childNodes[1] is elem
78 and root.childNodes.item(1) is elem
85 self.confirm(len(root.childNodes) == 3
86 and root.childNodes.length == 3
87 and root.childNodes[1] is elem
88 and root.childNodes.item(1) is elem
89 and root.childNodes[2] is nelem
90 and root.childNodes.item(2) is nelem
97 self.confirm(len(root.childNodes) == 4
98 and root.childNodes.length == 4
99 and root.childNodes[2] is nelem2
100 and root.childNodes.item(2) is nelem2
101 and root.childNodes[3] is nelem
102 and root.childNodes.item(3) is nelem
126 self.confirm(tuple(dom.documentElement.childNodes) ==
134 self.confirm(tuple(dom.documentElement.childNodes) ==
143 self.confirm(dom.documentElement.childNodes[-1].nodeName == "#comment")
144 self.confirm(dom.documentElement.childNodes[-1].data == "Hello")
150 self.confirm(tuple(dom.documentElement.childNodes) ==
160 self.confirm(tuple(dom.documentElement.childNodes) == (c1, c2, c3),
207 self.confirm(not dom.childNodes[-1].childNodes)
473 dom.getElementsByTagName('B')[0].childNodes[0].toxml(),
474 dom2.getElementsByTagName('B')[0].childNodes[0].toxml())
485 and len(pi.childNodes) == 0
606 self.confirm(len(clone.childNodes) == 0
607 and clone.childNodes.length == 0
615 self.confirm(len(clone.childNodes) == 1
616 and clone.childNodes.length == 1
644 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
671 and len(clone.childNodes) == 0)
710 and len(clone.childNodes) == 0)
781 self.confirm(len(root.childNodes) == 2
782 and root.childNodes.length == 2,
785 self.confirm(len(root.childNodes) == 1
786 and root.childNodes.length == 1
796 self.confirm(len(root.childNodes) == 0
797 and root.childNodes.length == 0,
807 self.confirm(len(root.childNodes) == 3
808 and root.childNodes.length == 3,
811 self.confirm(len(root.childNodes) == 2
812 and root.childNodes.length == 2
827 self.confirm(len(root.childNodes) == 2
828 and root.childNodes.length == 2,
831 self.confirm(len(root.childNodes) == 1
832 and root.childNodes.length == 1
845 self.confirm(len(root.childNodes) == 2
846 and root.childNodes.length == 2,
849 self.confirm(len(root.childNodes) == 1
850 and root.childNodes.length == 1
864 self.confirm(len(root.childNodes) == 3
865 and root.childNodes.length == 3,
868 self.confirm(len(root.childNodes) == 2
869 and root.childNodes.length == 2
886 self.confirm(len(root.childNodes) == 5
887 and root.childNodes.length == 5,
890 self.confirm(len(root.childNodes) == 1
891 and root.childNodes.length == 1
918 root.childNodes[0].appendChild(doc.createTextNode(""))
919 root.childNodes[0].appendChild(doc.createTextNode("x"))
920 root.childNodes[1].childNodes[0].appendChild(doc.createTextNode("x2"))
921 root.childNodes[1].appendChild(doc.createTextNode("x3"))
923 self.confirm(len(root.childNodes) == 3
924 and root.childNodes.length == 3
925 and len(root.childNodes[0].childNodes) == 4
926 and root.childNodes[0].childNodes.length == 4
927 and len(root.childNodes[1].childNodes) == 3
928 and root.childNodes[1].childNodes.length == 3
929 and len(root.childNodes[1].childNodes[0].childNodes) == 2
930 and root.childNodes[1].childNodes[0].childNodes.length == 2
933 self.confirm(len(root.childNodes) == 2
934 and root.childNodes.length == 2
935 and len(root.childNodes[0].childNodes) == 2
936 and root.childNodes[0].childNodes.length == 2
937 and len(root.childNodes[1].childNodes) == 2
938 and root.childNodes[1].childNodes.length == 2
939 and len(root.childNodes[1].childNodes[0].childNodes) == 1
940 and root.childNodes[1].childNodes[0].childNodes.length == 1
941 , "testNormalize2 -- childNodes lengths")
942 self.confirm(root.childNodes[0].childNodes[1].data == "tx"
943 and root.childNodes[1].childNodes[0].childNodes[0].data == "t2x2"
944 and root.childNodes[1].childNodes[1].data == "t3x3"
946 self.confirm(root.childNodes[0].childNodes[1].nextSibling is None
947 and root.childNodes[0].childNodes[1].previousSibling
948 is root.childNodes[0].childNodes[0]
949 and root.childNodes[0].childNodes[0].previousSibling is None
950 and root.childNodes[0].childNodes[0].nextSibling
951 is root.childNodes[0].childNodes[1]
952 and root.childNodes[1].childNodes[1].nextSibling is None
953 and root.childNodes[1].childNodes[1].previousSibling
954 is root.childNodes[1].childNodes[0]
955 and root.childNodes[1].childNodes[0].previousSibling is None
956 and root.childNodes[1].childNodes[0].nextSibling
957 is root.childNodes[1].childNodes[1]
964 text = doc.documentElement.childNodes[0]
973 node.childNodes[1].nodeValue = ""
975 self.confirm(node.childNodes[-1].nextSibling is None,
981 (pi, text, elm) = root.childNodes
996 elm1 = root.childNodes[0]
997 (elm2a, elm2b) = elm1.childNodes
998 elm3 = elm2b.childNodes[0]
1009 children = doc.childNodes
1013 and docelem.childNodes.item(0) is docelem.childNodes[0]
1014 and docelem.childNodes.item(1) is docelem.childNodes[1]
1015 and docelem.childNodes.item(0).childNodes.item(0) is None,
1035 (text1, elm1, text2) = root.childNodes
1036 text3 = elm1.childNodes[0]
1242 text = elem.childNodes[0]
1299 self.confirm(len(elem.childNodes) == 3)
1305 self.confirm(len(elem.childNodes) == 5)
1311 and len(elem.childNodes) == 2)
1463 and len(n1.childNodes) == len(n2.childNodes)
1492 for i in range(len(n1.childNodes)):
1493 stack.append((n1.childNodes[i], n2.childNodes[i]))