- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 28 Mar 2008 19:36:50 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/misc/testsuite/lib In directory hutz:/tmp/cvs-serv17088/lib Modified Files: TestCase.py Log Message: testcase title Index: TestCase.py =================================================================== RCS file: /sources/public/validator/misc/testsuite/lib/TestCase.py,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TestCase.py 27 Feb 2008 20:26:36 -0000 1.1 +++ TestCase.py 28 Mar 2008 19:36:48 -0000 1.2 @@ -115,9 +115,14 @@ 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")
Received on Friday, 28 March 2008 19:37:20 UTC