Changeset 173535 in webkit
- Timestamp:
- Sep 11, 2014 1:38:19 PM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r173514 r173535 1 2014-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 1 19 2014-09-10 Brent Fulgham <bfulgham@apple.com> 2 20 -
trunk/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py
r156074 r173535 54 54 55 55 # FIXME: We should be passing in a MockHost here ... 56 converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME )56 converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME, None) 57 57 prop_list = converter.prefixed_properties 58 58 self.assertTrue(prop_list, 'No prefixed properties found') … … 79 79 </html> 80 80 """ 81 converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME )81 converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME, None) 82 82 83 83 oc = OutputCapture() … … 101 101 """ 102 102 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) 104 104 converter.feed(test_html) 105 105 converter.close() … … 129 129 """ 130 130 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) 132 132 test_content = self.generate_test_content(converter.prefixed_properties, 1, test_html) 133 133 … … 166 166 """ 167 167 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) 169 169 170 170 oc = OutputCapture() … … 192 192 """ 193 193 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) 195 195 196 196 oc = OutputCapture() … … 269 269 </html> 270 270 """ 271 converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME )271 converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME, None) 272 272 test_content = self.generate_test_content(converter.prefixed_properties, 20, test_html) 273 273 -
trunk/Tools/Scripts/webkitpy/w3c/test_parser.py
r173498 r173535 74 74 test_info = None 75 75 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 76 83 # First check if it's a reftest 77 84 matches = self.reference_links_of_type('match') + self.reference_links_of_type('mismatch') … … 140 147 for path in paths: 141 148 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): 143 150 support_files.append(path) 144 151 -
trunk/Tools/Scripts/webkitpy/w3c/test_parser_unittest.py
r152133 r173535 134 134 self.assertTrue('reference' in test_info.keys(), 'did not find a reference file') 135 135 self.assertTrue(test_info['reference'].startswith(test_path), 'reference path is not correct') 136 self.assertTrue('ref support' in test_info.keys(), 'there should be refsupport filesfor this test')137 self.assertEquals(len(test_info['ref support']), 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') 138 138 self.assertFalse('jstest' in test_info.keys(), 'test should not have been analyzed as a jstest') 139 139
Note: See TracChangeset
for help on using the changeset viewer.