Home | History | Annotate | Download | only in test

Lines Matching defs:confirm

53     def confirm(self, test, testname = "Test"):
58 self.confirm(t == s, "looking for %r, found %r" % (s, t))
79 self.confirm(isinstance(dom, Document))
85 self.confirm(isinstance(dom, Document))
89 self.confirm(dom.getElementsByTagName("LI") == \
99 self.confirm(len(root.childNodes) == 2
111 self.confirm(len(root.childNodes) == 3
123 self.confirm(len(root.childNodes) == 4
152 self.confirm(tuple(dom.documentElement.childNodes) ==
160 self.confirm(tuple(dom.documentElement.childNodes) ==
169 self.confirm(dom.documentElement.childNodes[-1].nodeName == "#comment")
170 self.confirm(dom.documentElement.childNodes[-1].data == "Hello")
176 self.confirm(tuple(dom.documentElement.childNodes) ==
186 self.confirm(tuple(dom.documentElement.childNodes) == (c1, c2, c3),
218 self.confirm(a.ownerDocument is dom,
220 self.confirm(a.ownerElement is elem,
222 self.confirm(a.value == "bar",
224 self.confirm(a.nodeValue == "bar",
231 self.confirm(dom)# should not be zero
233 self.confirm(not dom.childNodes[-1].childNodes)
250 self.confirm(dom.documentElement)
257 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAA")
259 self.confirm(a.ownerDocument is dom,
261 self.confirm(a.ownerElement is dom.documentElement,
270 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAB")
278 self.confirm(child.getAttribute("def") == "ghi")
279 self.confirm(child.attributes["def"].value == "ghi")
282 self.confirm(child.getAttribute("jkl") == "mno")
283 self.confirm(child.attributes["jkl"].value == "mno")
285 self.confirm(len(child.attributes) == 2)
288 self.confirm(child.getAttribute("def") == "newval")
289 self.confirm(child.attributes["def"].value == "newval")
291 self.confirm(len(child.attributes) == 2)
298 self.confirm(len(child.attributes) == 0)
300 self.confirm(len(child.attributes) == 1)
302 self.confirm(len(child.attributes) == 0)
310 self.confirm(len(child.attributes) == 1)
313 self.confirm(len(child.attributes) == 0)
325 self.confirm(len(child.attributes) == 2)
327 self.confirm(len(child.attributes) == 1)
334 self.confirm(len(child.attributes) == 1)
339 self.confirm(len(child.attributes) == 0
352 self.confirm(child.hasAttribute("spam"))
358 self.confirm(len(el.attributes) == 1)
363 self.confirm(len(el.attributes) == 1
369 self.confirm(len(el.attributes) == 1
375 self.confirm(len(el.attributes) == 2
383 self.confirm(len(el.attributes) == 2
430 self.confirm(len(elems) == 1
441 self.confirm(len(nodelist) == 0)
465 self.confirm(string1 == string2)
473 self.confirm(string1 == string2)
482 self.confirm(string1 == string2)
483 self.confirm("slash:abc" in string1)
490 self.confirm(str(node) == repr(node))
500 self.confirm(str == domstr)
507 self.confirm(domstr == str.replace("\n", "\r\n"))
546 self.confirm(pi.target == "mypi"
600 self.confirm(a1.isSameNode(a2))
609 self.confirm(a1.isSameNode(a2))
652 self.confirm(keys1 == keys2, "clone of element has same attribute keys")
656 self.confirm(a1 is not a2
662 self.confirm(a2.ownerElement is e2,
679 self.confirm(len(clone.childNodes) == 0
688 self.confirm(len(clone.childNodes) == 1
703 self.confirm(doc2 is None,
715 self.confirm(not (doc.isSameNode(doc2) or doc2.isSameNode(doc)),
717 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
719 self.confirm(doc2.documentElement.nodeType == Node.ELEMENT_NODE,
721 self.confirm(doc2.documentElement.ownerDocument.isSameNode(doc2),
723 self.confirm(not doc.documentElement.isSameNode(doc2.documentElement),
727 self.confirm(doc2.doctype.nodeType == Node.DOCUMENT_TYPE_NODE,
729 self.confirm(doc2.doctype.ownerDocument.isSameNode(doc2))
730 self.confirm(not doc.doctype.isSameNode(doc2.doctype))
735 self.confirm(clone is not None
748 self.confirm((not se.isSameNode(ce))
760 self.confirm((not sn.isSameNode(cn))
769 self.confirm(clone is None, "testCloneDocumentTypeDeepNotOk")
774 self.confirm(clone is not None
788 self.confirm(clone is None, "testCloneDocumentTypeShallowNotOk")
820 self.confirm(not clone.isSameNode(attr))
821 self.confirm
822 self.confirm(clone.ownerElement is None,
824 self.confirm(clone.ownerDocument.isSameNode(attr.ownerDocument),
826 self.confirm(clone.specified,
840 self.confirm(clone.target == pi.target
854 self.confirm(len(root.childNodes) == 2
858 self.confirm(len(root.childNodes) == 1
869 self.confirm(len(root.childNodes) == 0
880 self.confirm(len(root.childNodes) == 3
884 self.confirm(len(root.childNodes) == 2
900 self.confirm(len(root.childNodes) == 2
904 self.confirm(len(root.childNodes) == 1
918 self.confirm(len(root.childNodes) == 2
922 self.confirm(len(root.childNodes) == 1
937 self.confirm(len(root.childNodes) == 3
941 self.confirm(len(root.childNodes) == 2
959 self.confirm(len(root.childNodes) == 5
963 self.confirm(len(root.childNodes) == 1
996 self.confirm(len(root.childNodes) == 3
1006 self.confirm(len(root.childNodes) == 2
1015 self.confirm(root.childNodes[0].childNodes[1].data == "tx"
1019 self.confirm(root.childNodes[0].childNodes[1].nextSibling is None
1048 self.confirm(node.childNodes[-1].nextSibling is None,
1056 self.confirm(pi.nextSibling is text and
1073 self.confirm(root.parentNode is doc and
1084 self.confirm(children[0] is children.item(0)
1123 self.confirm(n.getUserData("foo") is None)
1125 self.confirm(n.getUserData("foo") is None)
1128 self.confirm(n.getUserData("foo") == 12)
1129 self.confirm(n.getUserData("bar") == 13)
1131 self.confirm(n.getUserData("foo") is None)
1132 self.confirm(n.getUserData("bar") == 13)
1137 self.confirm(handler.called
1160 self.confirm(attr.name == "b"
1174 self.confirm(attr.name == "c"
1190 self.confirm(attr.name == "p:d"
1209 self.confirm(attr.name == "e"
1235 self.confirm(elem.tagName == "a"
1244 self.confirm(elem.tagName == "b"
1253 self.confirm(elem.tagName == "p:c"
1262 self.confirm(elem.tagName == "d"
1322 self.confirm(e.parentNode is elem, "Before replaceChild()")
1325 self.confirm(e.parentNode is elem, "After replaceChild()")
1342 self.confirm(len(elem.childNodes) == 3)
1348 self.confirm(len(elem.childNodes) == 5)
1353 self.confirm(text is None
1380 self.confirm(t.name is None
1386 self.confirm(hasattr(t, "name")
1394 self.confirm(doc.getElementById("v") is None
1398 self.confirm(e.isSameNode(doc.getElementById("v"))
1402 self.confirm(e.isSameNode(doc.getElementById("v"))
1410 self.confirm(doc.getElementById("v") is None
1417 self.confirm(e.isSameNode(doc.getElementById("w"))
1430 self.confirm(doc.getElementById("v") is None
1434 self.confirm(e.isSameNode(doc.getElementById("v"))
1438 self.confirm(e.isSameNode(doc.getElementById("v"))
1446 self.confirm(e.isSameNode(doc.getElementById("w")))
1447 self.confirm(not a1.isId)
1448 self.confirm(a2.isId)
1449 self.confirm(not a3.isId)
1450 self.confirm(doc.getElementById("v") is None)
1453 self.confirm(e.isSameNode(doc.getElementById("w"))
1466 self.confirm(doc.getElementById("v") is None
1470 self.confirm(e.isSameNode(doc.getElementById("v"))
1474 self.confirm(e.isSameNode(doc.getElementById("v"))
1482 self.confirm(e.isSameNode(doc.getElementById("w")))
1483 self.confirm(not a1.isId)
1484 self.confirm(a2.isId)
1485 self.confirm(not a3.isId)
1486 self.confirm(doc.getElementById("v") is None)
1489 self.confirm(e.isSameNode(doc.getElementById("w"))
1551 self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)