[Python-checkins] CVS: python/dist/src/Lib/test test_minidom.py,1.12,1.13
Lars Marius Garshol
python-dev@python.org
Fri, 13 Oct 2000 13:54:14 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/test/output test_minidom,1.8,1.9
- Next message: [Python-checkins] CVS: python/dist/src/Tools/compiler/compiler ast.py,1.9,1.10 pyassem.py,1.12,1.13 pycodegen.py,1.25,1.26 transformer.py,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv29715
Modified Files:
test_minidom.py
Log Message:
Updated test suite to latest pulldom changes.
Index: test_minidom.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_minidom.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** test_minidom.py 2000/10/12 17:31:36 1.12
--- test_minidom.py 2000/10/13 20:54:10 1.13
***************
*** 338,356 ****
doc.unlink()
! def testNonNSElements():
from xml.dom import pulldom
! pulldom = pulldom.PullDOM()
! pulldom.startDocument()
! pulldom.startElement("doc", {})
! pulldom.characters("text")
! pulldom.startElement("subelm", {})
! pulldom.characters("text")
! pulldom.endElement("subelm")
! pulldom.characters("text")
! pulldom.endElement("doc")
! pulldom.endDocument()
! doc = pulldom.document
root = doc.documentElement
(text1, elm1, text2) = root.childNodes
--- 338,356 ----
doc.unlink()
! def testSAX2DOM():
from xml.dom import pulldom
! sax2dom = pulldom.SAX2DOM()
! sax2dom.startDocument()
! sax2dom.startElement("doc", {})
! sax2dom.characters("text")
! sax2dom.startElement("subelm", {})
! sax2dom.characters("text")
! sax2dom.endElement("subelm")
! sax2dom.characters("text")
! sax2dom.endElement("doc")
! sax2dom.endDocument()
! doc = sax2dom.document
root = doc.documentElement
(text1, elm1, text2) = root.childNodes
***************
*** 364,368 ****
text2.nextSibling is None and
text3.previousSibling is None and
! text3.nextSibling is None, "testNonNSElements - siblings")
confirm(root.parentNode is doc and
--- 364,368 ----
text2.nextSibling is None and
text3.previousSibling is None and
! text3.nextSibling is None, "testSAX2DOM - siblings")
confirm(root.parentNode is doc and
***************
*** 370,374 ****
elm1.parentNode is root and
text2.parentNode is root and
! text3.parentNode is elm1, "testNonNSElements - parents")
doc.unlink()
--- 370,374 ----
elm1.parentNode is root and
text2.parentNode is root and
! text3.parentNode is elm1, "testSAX2DOM - parents")
doc.unlink()
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/test/output test_minidom,1.8,1.9
- Next message: [Python-checkins] CVS: python/dist/src/Tools/compiler/compiler ast.py,1.9,1.10 pyassem.py,1.12,1.13 pycodegen.py,1.25,1.26 transformer.py,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]