Lines Matching refs:confirm
56 def confirm(self, test, testname = "Test"):
61 self.confirm(t == s, "looking for %r, found %r" % (s, t))
72 self.confirm(isinstance(dom, Document))
78 self.confirm(isinstance(dom, Document))
96 self.confirm(dom.getElementsByTagName("LI") == \
106 self.confirm(len(root.childNodes) == 2
118 self.confirm(len(root.childNodes) == 3
130 self.confirm(len(root.childNodes) == 4
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),
225 self.confirm(a.ownerDocument is dom,
227 self.confirm(a.ownerElement is elem,
229 self.confirm(a.value == "bar",
231 self.confirm(a.nodeValue == "bar",
238 self.confirm(dom)# should not be zero
240 self.confirm(not dom.childNodes[-1].childNodes)
257 self.confirm(dom.documentElement)
264 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAA")
266 self.confirm(a.ownerDocument is dom,
268 self.confirm(a.ownerElement is dom.documentElement,
277 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAB")
285 self.confirm(child.getAttribute("def") == "ghi")
286 self.confirm(child.attributes["def"].value == "ghi")
289 self.confirm(child.getAttribute("jkl") == "mno")
290 self.confirm(child.attributes["jkl"].value == "mno")
292 self.confirm(len(child.attributes) == 2)
295 self.confirm(child.getAttribute("def") == "newval")
296 self.confirm(child.attributes["def"].value == "newval")
298 self.confirm(len(child.attributes) == 2)
305 self.confirm(len(child.attributes) == 0)
307 self.confirm(len(child.attributes) == 1)
309 self.confirm(len(child.attributes) == 0)
317 self.confirm(len(child.attributes) == 1)
320 self.confirm(len(child.attributes) == 0)
332 self.confirm(len(child.attributes) == 2)
334 self.confirm(len(child.attributes) == 1)
341 self.confirm(len(child.attributes) == 1)
346 self.confirm(len(child.attributes) == 0
359 self.confirm(child.hasAttribute("spam"))
365 self.confirm(len(el.attributes) == 1)
370 self.confirm(len(el.attributes) == 1
376 self.confirm(len(el.attributes) == 1
382 self.confirm(len(el.attributes) == 2
390 self.confirm(len(el.attributes) == 2
437 self.confirm(len(elems) == 1
448 self.confirm(len(nodelist) == 0)
472 self.confirm(string1 == string2)
480 self.confirm(string1 == string2)
489 self.confirm(string1 == string2)
490 self.confirm("slash:abc" in string1)
497 self.confirm(str(node) == repr(node))
507 self.confirm(str == domstr)
514 self.confirm(domstr == str.replace("\n", "\r\n"))
553 self.confirm(pi.target == "mypi"
607 self.confirm(a1.isSameNode(a2))
616 self.confirm(a1.isSameNode(a2))
659 self.confirm(keys1 == keys2, "clone of element has same attribute keys")
663 self.confirm(a1 is not a2
669 self.confirm(a2.ownerElement is e2,
686 self.confirm(len(clone.childNodes) == 0
695 self.confirm(len(clone.childNodes) == 1
710 self.confirm(doc2 is None,
722 self.confirm(not (doc.isSameNode(doc2) or doc2.isSameNode(doc)),
724 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
726 self.confirm(doc2.documentElement.nodeType == Node.ELEMENT_NODE,
728 self.confirm(doc2.documentElement.ownerDocument.isSameNode(doc2),
730 self.confirm(not doc.documentElement.isSameNode(doc2.documentElement),
734 self.confirm(doc2.doctype.nodeType == Node.DOCUMENT_TYPE_NODE,
736 self.confirm(doc2.doctype.ownerDocument.isSameNode(doc2))
737 self.confirm(not doc.doctype.isSameNode(doc2.doctype))
742 self.confirm(clone is not None
755 self.confirm((not se.isSameNode(ce))
767 self.confirm((not sn.isSameNode(cn))
776 self.confirm(clone is None, "testCloneDocumentTypeDeepNotOk")
781 self.confirm(clone is not None
795 self.confirm(clone is None, "testCloneDocumentTypeShallowNotOk")
827 self.confirm(not clone.isSameNode(attr))
828 self.confirm(not attr.isSameNode(clone))
829 self.confirm(clone.ownerElement is None,
831 self.confirm(clone.ownerDocument.isSameNode(attr.ownerDocument),
833 self.confirm(clone.specified,
847 self.confirm(clone.target == pi.target
912 self.confirm(len(root.childNodes) == 2
916 self.confirm(len(root.childNodes) == 1
927 self.confirm(len(root.childNodes) == 0
938 self.confirm(len(root.childNodes) == 3
942 self.confirm(len(root.childNodes) == 2
958 self.confirm(len(root.childNodes) == 2
962 self.confirm(len(root.childNodes) == 1
976 self.confirm(len(root.childNodes) == 2
980 self.confirm(len(root.childNodes) == 1
995 self.confirm(len(root.childNodes) == 3
999 self.confirm(len(root.childNodes) == 2
1017 self.confirm(len(root.childNodes) == 5
1021 self.confirm(len(root.childNodes) == 1
1054 self.confirm(len(root.childNodes) == 3
1064 self.confirm(len(root.childNodes) == 2
1073 self.confirm(root.childNodes[0].childNodes[1].data == "tx"
1077 self.confirm(root.childNodes[0].childNodes[1].nextSibling is None
1106 self.confirm(node.childNodes[-1].nextSibling is None,
1114 self.confirm(pi.nextSibling is text and
1131 self.confirm(root.parentNode is doc and
1142 self.confirm(children[0] is children.item(0)
1203 self.confirm(n.getUserData("foo") is None)
1205 self.confirm(n.getUserData("foo") is None)
1208 self.confirm(n.getUserData("foo") == 12)
1209 self.confirm(n.getUserData("bar") == 13)
1211 self.confirm(n.getUserData("foo") is None)
1212 self.confirm(n.getUserData("bar") == 13)
1217 self.confirm(handler.called
1240 self.confirm(attr.name == "b"
1254 self.confirm(attr.name == "c"
1270 self.confirm(attr.name == "p:d"
1289 self.confirm(attr.name == "e"
1315 self.confirm(elem.tagName == "a"
1324 self.confirm(elem.tagName == "b"
1333 self.confirm(elem.tagName == "p:c"
1342 self.confirm(elem.tagName == "d"
1402 self.confirm(e.parentNode is elem, "Before replaceChild()")
1405 self.confirm(e.parentNode is elem, "After replaceChild()")
1422 self.confirm(len(elem.childNodes) == 3)
1428 self.confirm(len(elem.childNodes) == 5)
1433 self.confirm(text is None
1460 self.confirm(t.name is None
1466 self.confirm(hasattr(t, "name")
1474 self.confirm(doc.getElementById("v") is None
1478 self.confirm(e.isSameNode(doc.getElementById("v"))
1482 self.confirm(e.isSameNode(doc.getElementById("v"))
1490 self.confirm(doc.getElementById("v") is None
1497 self.confirm(e.isSameNode(doc.getElementById("w"))
1510 self.confirm(doc.getElementById("v") is None
1514 self.confirm(e.isSameNode(doc.getElementById("v"))
1518 self.confirm(e.isSameNode(doc.getElementById("v"))
1526 self.confirm(e.isSameNode(doc.getElementById("w")))
1527 self.confirm(not a1.isId)
1528 self.confirm(a2.isId)
1529 self.confirm(not a3.isId)
1530 self.confirm(doc.getElementById("v") is None)
1533 self.confirm(e.isSameNode(doc.getElementById("w"))
1546 self.confirm(doc.getElementById("v") is None
1550 self.confirm(e.isSameNode(doc.getElementById("v"))
1554 self.confirm(e.isSameNode(doc.getElementById("v"))
1562 self.confirm(e.isSameNode(doc.getElementById("w")))
1563 self.confirm(not a1.isId)
1564 self.confirm(a2.isId)
1565 self.confirm(not a3.isId)
1566 self.confirm(doc.getElementById("v") is None)
1569 self.confirm(e.isSameNode(doc.getElementById("w"))
1631 self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)