summaryrefslogtreecommitdiffstats
path: root/misc/testsuite/lib/TestCase.py
diff options
context:
space:
mode:
authorot <ot@localhost>2008-03-28 19:36:48 +0000
committerot <ot@localhost>2008-03-28 19:36:48 +0000
commitc5013c31f2eaf8ddfd125b08beb0341f5f7d445c (patch)
tree58533d7f9c1d6d5613dcc8431961460102a0ffdc /misc/testsuite/lib/TestCase.py
parent336066faa75828c59cf060acfd9b6938c7e1f45f (diff)
downloadmarkup-validator-c5013c31f2eaf8ddfd125b08beb0341f5f7d445c.zip
markup-validator-c5013c31f2eaf8ddfd125b08beb0341f5f7d445c.tar.gz
markup-validator-c5013c31f2eaf8ddfd125b08beb0341f5f7d445c.tar.bz2
testcase title
Diffstat (limited to 'misc/testsuite/lib/TestCase.py')
-rw-r--r--misc/testsuite/lib/TestCase.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/misc/testsuite/lib/TestCase.py b/misc/testsuite/lib/TestCase.py
index 20b7510..d903d39 100644
--- a/misc/testsuite/lib/TestCase.py
+++ b/misc/testsuite/lib/TestCase.py
@@ -115,9 +115,14 @@ class ValidatorTestSuite():
def readTestCase(self, testcase_node):
"""read metadata for a test case from an elementTree testcase node"""
- title = ""
- descr = ""
- descr = testcase_node.findtext(".//{http://www.w3.org/1999/xhtml}p")
+ try:
+ title = testcase_node.findtext(".//{http://purl.org/dc/elements/1.1/}title")
+ except:
+ title = ""
+ try:
+ descr = testcase_node.findtext(".//{http://www.w3.org/1999/xhtml}p")
+ except:
+ descr = ""
test_uri = ""
test_uri = testcase_node.findtext(".//uri")
expect_elt = testcase_node.find(".//expect")