mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Implement testGetElementsByTagNameNS.
This commit is contained in:
parent
ed525fb0df
commit
351c3d0554
2 changed files with 9 additions and 1 deletions
|
|
@ -110,6 +110,7 @@ Passed assertion: len(Node.allnodes) == 0
|
||||||
Passed Test
|
Passed Test
|
||||||
Test Succeeded testGetElementsByTagName
|
Test Succeeded testGetElementsByTagName
|
||||||
Passed assertion: len(Node.allnodes) == 0
|
Passed assertion: len(Node.allnodes) == 0
|
||||||
|
Passed Test
|
||||||
Test Succeeded testGetElementsByTagNameNS
|
Test Succeeded testGetElementsByTagNameNS
|
||||||
Passed assertion: len(Node.allnodes) == 0
|
Passed assertion: len(Node.allnodes) == 0
|
||||||
Test Succeeded testGetEmptyNodeListFromElementsByTagNameNS
|
Test Succeeded testGetEmptyNodeListFromElementsByTagNameNS
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,14 @@ def testGetAttributeNS(): pass
|
||||||
|
|
||||||
def testGetAttributeNode(): pass
|
def testGetAttributeNode(): pass
|
||||||
|
|
||||||
def testGetElementsByTagNameNS(): pass
|
def testGetElementsByTagNameNS():
|
||||||
|
d="""<foo xmlns:minidom="http://pyxml.sf.net/minidom">
|
||||||
|
<minidom:myelem/>
|
||||||
|
</foo>"""
|
||||||
|
dom = parseString(d)
|
||||||
|
elem = dom.getElementsByTagNameNS("http://pyxml.sf.net/minidom","myelem")
|
||||||
|
confirm(len(elem) == 1)
|
||||||
|
dom.unlink()
|
||||||
|
|
||||||
def testGetEmptyNodeListFromElementsByTagNameNS(): pass
|
def testGetEmptyNodeListFromElementsByTagNameNS(): pass
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue