Changeset 173535 in webkit


Ignore:
Timestamp:
Sep 11, 2014 1:38:19 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

webkitpy test failures from import-w3c-tests
https://bugs.webkit.org/show_bug.cgi?id=136752

Patch by Rebecca Hauck <rhauck@adobe.com> on 2014-09-11
Reviewed by Bem Jones-Bey.

This patch fixes a bug in import-w3c-tests where we were appending
the wrong set of files to the copy_list. This also updates the tests
to clear the failures introduced in the patch for bug 135929.

  • Scripts/webkitpy/w3c/test_converter_unittest.py:

(W3CTestConverterTest.test_read_prefixed_property_list):

  • Scripts/webkitpy/w3c/test_parser.py:

(TestParser.analyze_test):
(TestParser.support_files):

  • Scripts/webkitpy/w3c/test_parser_unittest.py:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r173514 r173535  
     12014-09-11  Rebecca Hauck  <rhauck@adobe.com>
     2
     3        webkitpy test failures from import-w3c-tests
     4        https://bugs.webkit.org/show_bug.cgi?id=136752
     5
     6        Reviewed by Bem Jones-Bey.
     7
     8        This patch fixes a bug in import-w3c-tests where we were appending
     9        the wrong set of files to the copy_list. This also updates the tests
     10        to clear the failures introduced in the patch for bug 135929.
     11
     12        * Scripts/webkitpy/w3c/test_converter_unittest.py:
     13        (W3CTestConverterTest.test_read_prefixed_property_list):
     14        * Scripts/webkitpy/w3c/test_parser.py:
     15        (TestParser.analyze_test):
     16        (TestParser.support_files):
     17        * Scripts/webkitpy/w3c/test_parser_unittest.py:
     18
    1192014-09-10  Brent Fulgham  <bfulgham@apple.com>
    220
  • trunk/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py

    r156074 r173535  
    5454
    5555        # FIXME: We should be passing in a MockHost here ...
    56         converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME)
     56        converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME, None)
    5757        prop_list = converter.prefixed_properties
    5858        self.assertTrue(prop_list, 'No prefixed properties found')
     
    7979</html>
    8080"""
    81         converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME)
     81        converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME, None)
    8282
    8383        oc = OutputCapture()
     
    101101"""
    102102        fake_dir_path = self.fake_dir_path("harnessonly")
    103         converter = _W3CTestConverter(fake_dir_path, DUMMY_FILENAME)
     103        converter = _W3CTestConverter(fake_dir_path, DUMMY_FILENAME, None)
    104104        converter.feed(test_html)
    105105        converter.close()
     
    129129"""
    130130        fake_dir_path = self.fake_dir_path('harnessandprops')
    131         converter = _W3CTestConverter(fake_dir_path, DUMMY_FILENAME)
     131        converter = _W3CTestConverter(fake_dir_path, DUMMY_FILENAME, None)
    132132        test_content = self.generate_test_content(converter.prefixed_properties, 1, test_html)
    133133
     
    166166"""
    167167        fake_dir_path = self.fake_dir_path('harnessandprops')
    168         converter = _W3CTestConverter(fake_dir_path, DUMMY_FILENAME)
     168        converter = _W3CTestConverter(fake_dir_path, DUMMY_FILENAME, None)
    169169
    170170        oc = OutputCapture()
     
    192192"""
    193193        fake_dir_path = self.fake_dir_path('testharnesspaths')
    194         converter = _W3CTestConverter(fake_dir_path, DUMMY_FILENAME)
     194        converter = _W3CTestConverter(fake_dir_path, DUMMY_FILENAME, None)
    195195
    196196        oc = OutputCapture()
     
    269269</html>
    270270"""
    271         converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME)
     271        converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME, None)
    272272        test_content = self.generate_test_content(converter.prefixed_properties, 20, test_html)
    273273
  • trunk/Tools/Scripts/webkitpy/w3c/test_parser.py

    r173498 r173535  
    7474        test_info = None
    7575
     76        if test_contents is None and self.test_doc is None:
     77            return test_info
     78        if test_contents is not None:
     79            self.test_doc = Parser(test_contents)
     80        if ref_contents is not None:
     81            self.ref_doc = Parser(ref_contents)
     82
    7683        # First check if it's a reftest
    7784        matches = self.reference_links_of_type('match') + self.reference_links_of_type('mismatch')
     
    140147        for path in paths:
    141148            uri_scheme_pattern = re.compile(r"[A-Za-z][A-Za-z+.-]*:")
    142             if uri_scheme_pattern.match(path):
     149            if not uri_scheme_pattern.match(path):
    143150                support_files.append(path)
    144151
  • trunk/Tools/Scripts/webkitpy/w3c/test_parser_unittest.py

    r152133 r173535  
    134134        self.assertTrue('reference' in test_info.keys(), 'did not find a reference file')
    135135        self.assertTrue(test_info['reference'].startswith(test_path), 'reference path is not correct')
    136         self.assertTrue('refsupport' in test_info.keys(), 'there should be refsupport files for this test')
    137         self.assertEquals(len(test_info['refsupport']), 3, 'there should be 3 support files in this reference')
     136        self.assertTrue('reference_support_info' in test_info.keys(), 'there should be reference_support_info for this test')
     137        self.assertEquals(len(test_info['reference_support_info']['files']), 3, 'there should be 3 support files in this reference')
    138138        self.assertFalse('jstest' in test_info.keys(), 'test should not have been analyzed as a jstest')
    139139
Note: See TracChangeset for help on using the changeset viewer.