Home | History | Annotate | Download | only in test

Lines Matching defs:confirm

49     def confirm(self, test, testname = "Test"):
54 self.confirm(t == s, "looking for %s, found %s" % (repr(s), repr(t)))
59 self.confirm(isinstance(dom,Document))
63 self.confirm(dom.getElementsByTagName("LI") == \
73 self.confirm(len(root.childNodes) == 2
85 self.confirm(len(root.childNodes) == 3
97 self.confirm(len(root.childNodes) == 4
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),
192 self.confirm(a.ownerDocument is dom,
194 self.confirm(a.ownerElement is elem,
196 self.confirm(a.value == "bar",
198 self.confirm(a.nodeValue == "bar",
205 self.confirm(dom)# should not be zero
207 self.confirm(not dom.childNodes[-1].childNodes)
217 self.confirm(dom.documentElement)
224 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAA")
226 self.confirm(a.ownerDocument is dom,
228 self.confirm(a.ownerElement is dom.documentElement,
237 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAB")
245 self.confirm(child.getAttribute("def") == "ghi")
246 self.confirm(child.attributes["def"].value == "ghi")
249 self.confirm(child.getAttribute("jkl") == "mno")
250 self.confirm(child.attributes["jkl"].value == "mno")
252 self.confirm(len(child.attributes) == 2)
255 self.confirm(child.getAttribute("def") == "newval")
256 self.confirm(child.attributes["def"].value == "newval")
258 self.confirm(len(child.attributes) == 2)
265 self.confirm(len(child.attributes) == 0)
267 self.confirm(len(child.attributes) == 1)
269 self.confirm(len(child.attributes) == 0)
277 self.confirm(len(child.attributes) == 1)
279 self.confirm(len(child.attributes) == 0)
289 self.confirm(len(child.attributes) == 2)
291 self.confirm(len(child.attributes) == 1)
298 self.confirm(len(child.attributes) == 1)
301 self.confirm(len(child.attributes) == 0
309 self.confirm(len(el.attributes) == 1)
314 self.confirm(len(el.attributes) == 1
320 self.confirm(len(el.attributes) == 1
326 self.confirm(len(el.attributes) == 2
334 self.confirm(len(el.attributes) == 2
363 self.confirm(len(elems) == 1
374 self.confirm(len(nodelist) == 0)
398 self.confirm(string1 == string2)
406 self.confirm(string1 == string2)
415 self.confirm(string1 == string2)
416 self.confirm("slash:abc" in string1)
423 self.confirm(str(node) == repr(node))
433 self.confirm(str == domstr)
440 self.confirm(domstr == str.replace("\n", "\r\n"))
479 self.confirm(pi.target == "mypi"
533 self.confirm(a1.isSameNode(a2))
542 self.confirm(a1.isSameNode(a2))
579 self.confirm(keys1 == keys2, "clone of element has same attribute keys")
583 self.confirm(a1 is not a2
589 self.confirm(a2.ownerElement is e2,
606 self.confirm(len(clone.childNodes) == 0
615 self.confirm(len(clone.childNodes) == 1
630 self.confirm(doc2 is None,
642 self.confirm(not (doc.isSameNode(doc2) or doc2.isSameNode(doc)),
644 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
646 self.confirm(doc2.documentElement.nodeType == Node.ELEMENT_NODE,
648 self.confirm(doc2.documentElement.ownerDocument.isSameNode(doc2),
650 self.confirm(not doc.documentElement.isSameNode(doc2.documentElement),
654 self.confirm(doc2.doctype.nodeType == Node.DOCUMENT_TYPE_NODE,
656 self.confirm(doc2.doctype.ownerDocument.isSameNode(doc2))
657 self.confirm(not doc.doctype.isSameNode(doc2.doctype))
662 self.confirm(clone is not None
675 self.confirm((not se.isSameNode(ce))
687 self.confirm((not sn.isSameNode(cn))
696 self.confirm(clone is None, "testCloneDocumentTypeDeepNotOk")
701 self.confirm(clone is not None
715 self.confirm(clone is None, "testCloneDocumentTypeShallowNotOk")
747 self.confirm(not clone.isSameNode(attr))
748 self.confirm(not attr.isSameNode(clone))
749 self.confirm(clone.ownerElement is None,
751 self.confirm(clone.ownerDocument.isSameNode(attr.ownerDocument),
753 self.confirm(clone.specified,
767 self.confirm(clone.target == pi.target
781 self.confirm(len(root.childNodes) == 2
785 self.confirm(len(root.childNodes) == 1
796 self.confirm(len(root.childNodes) == 0
807 self.confirm(len(root.childNodes) == 3
811 self.confirm(len(root.childNodes) == 2
827 self.confirm(len(root.childNodes) == 2
831 self.confirm(len(root.childNodes) == 1
845 self.confirm(len(root.childNodes) == 2
849 self.confirm(len(root.childNodes) == 1
864 self.confirm(len(root.childNodes) == 3
868 self.confirm(len(root.childNodes) == 2
886 self.confirm(len(root.childNodes) == 5
890 self.confirm(len(root.childNodes) == 1
923 self.confirm(len(root.childNodes) == 3
933 self.confirm(len(root.childNodes) == 2
942 self.confirm(root.childNodes[0].childNodes[1].data == "tx"
946 self.confirm(root.childNodes[0].childNodes[1].nextSibling is None
975 self.confirm(node.childNodes[-1].nextSibling is None,
983 self.confirm(pi.nextSibling is text and
1000 self.confirm(root.parentNode is doc and
1011 self.confirm(children[0] is children.item(0)
1038 self.confirm(text1.previousSibling is None and
1047 self.confirm(root.parentNode is doc and
1056 self.confirm(doc.toxml() == u'<?xml version="1.0" ?><foo>\u20ac</foo>'
1080 self.confirm(n.getUserData("foo") is None)
1082 self.confirm(n.getUserData("foo") is None)
1085 self.confirm(n.getUserData("foo") == 12)
1086 self.confirm(n.getUserData("bar") == 13)
1088 self.confirm(n.getUserData("foo") is None)
1089 self.confirm(n.getUserData("bar") == 13)
1094 self.confirm(handler.called
1117 self.confirm(attr.name == "b"
1131 self.confirm(attr.name == "c"
1147 self.confirm(attr.name == "p:d"
1166 self.confirm(attr.name == "e"
1192 self.confirm(elem.tagName == "a"
1201 self.confirm(elem.tagName == "b"
1210 self.confirm(elem.tagName == "p:c"
1219 self.confirm(elem.tagName == "d"
1279 self.confirm(e.parentNode is elem, "Before replaceChild()")
1282 self.confirm(e.parentNode is elem, "After replaceChild()")
1299 self.confirm(len(elem.childNodes) == 3)
1305 self.confirm(len(elem.childNodes) == 5)
1310 self.confirm(text is None
1337 self.confirm(t.name is None
1343 self.confirm(hasattr(t, "name")
1351 self.confirm(doc.getElementById("v") is None
1355 self.confirm(e.isSameNode(doc.getElementById("v"))
1359 self.confirm(e.isSameNode(doc.getElementById("v"))
1367 self.confirm(doc.getElementById("v") is None
1374 self.confirm(e.isSameNode(doc.getElementById("w"))
1387 self.confirm(doc.getElementById("v") is None
1391 self.confirm(e.isSameNode(doc.getElementById("v"))
1395 self.confirm(e.isSameNode(doc.getElementById("v"))
1403 self.confirm(e.isSameNode(doc.getElementById("w")))
1404 self.confirm(not a1.isId)
1405 self.confirm(a2.isId)
1406 self.confirm(not a3.isId)
1407 self.confirm(doc.getElementById("v") is None)
1410 self.confirm(e.isSameNode(doc.getElementById("w"))
1423 self.confirm(doc.getElementById("v") is None
1427 self.confirm(e.isSameNode(doc.getElementById("v"))
1431 self.confirm(e.isSameNode(doc.getElementById("v"))
1439 self.confirm(e.isSameNode(doc.getElementById("w")))
1440 self.confirm(not a1.isId)
1441 self.confirm(a2.isId)
1442 self.confirm(not a3.isId)
1443 self.confirm(doc.getElementById("v") is None)
1446 self.confirm(e.isSameNode(doc.getElementById("w"))
1462 self.confirm(n1.nodeType == n2.nodeType
1472 self.confirm(len(n1.entities) == len(n2.entities)
1478 self.confirm(no1.name == no2.name
1485 self.confirm(e1.notationName == e2.notationName
1490 self.confirm(n1.ownerDocument.isSameNode(doc)
1504 self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)