X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Tools%2FScripts%2Fwebkitpy%2Fw3c%2Ftest_parser.py;h=4272d303235620c800deff24b36f4566fb7502f8;hp=b88ff486713138bb0151651651430ada5cc3359a;hb=cae695f94a4b1f1c2fa8ccd0013331c1eae78c9c;hpb=26af4c19257e4eadfebd843de66982bd16007aba diff --git a/Tools/Scripts/webkitpy/w3c/test_parser.py b/Tools/Scripts/webkitpy/w3c/test_parser.py index b88ff4867131..4272d3032356 100644 --- a/Tools/Scripts/webkitpy/w3c/test_parser.py +++ b/Tools/Scripts/webkitpy/w3c/test_parser.py @@ -95,6 +95,9 @@ class TestParser(object): _log.error('%s has a reference link but is missing the "href"', self.filesystem) return None + if (ref_file == self.filename): + return {'referencefile': self.filename} + if self.ref_doc is None: self.load_file(ref_file, True) @@ -114,10 +117,12 @@ class TestParser(object): test_info['reference_support_info'] = {} # we check for wpt manual test before checking for jstest, as some WPT manual tests can be classified as CSS JS tests elif self.is_wpt_manualtest(): - test_info = None + test_info = {'test': self.filename, 'manualtest': True} elif self.is_jstest(): test_info = {'test': self.filename, 'jstest': True} - elif self.options['all'] is True and not('-ref' in self.filename) and not('reference' in self.filename): + elif '-ref' in self.filename or 'reference' in self.filename: + test_info = {'referencefile': self.filename} + elif self.options['all'] is True: test_info = {'test': self.filename} return test_info