Tools/ChangeLog

 12021-11-08 Manuel Rego Casasnovas <rego@igalia.com>
 2
 3 WPT test importer imports rel="mismatch" as the reference
 4 https://bugs.webkit.org/show_bug.cgi?id=207175
 5 <rdar://problem/69332102>
 6
 7 Reviewed by NOBODY (OOPS!).
 8
 9 Setting "-expected-mismatch" suffix for <meta rel="mismatch"> references from WPT.
 10
 11 * Scripts/webkitpy/w3c/test_importer.py:
 12 (TestImporter.find_importable_tests): Adding "-mismatch" suffix as needed.
 13 * Scripts/webkitpy/w3c/test_parser.py:
 14 (TestParser.analyze_test): Store the reference type in test_info["type"].
 15 * Scripts/webkitpy/w3c/test_parser_unittest.py:
 16 (test_analyze_test_reftest_one_mismatch): Add new test cases for the reference type.
 17
1182021-11-02 Tim Horton <timothy_horton@apple.com>
219
320 UnicodeDecodeError in write_reftest copying a non-UTF8 expected result file

Tools/Scripts/webkitpy/w3c/test_importer.py

@@class TestImporter(object):
349349 # Using a naming convention creates duplicate copies of the
350350 # reference files.
351351 ref_file = self.filesystem.splitext(test_basename)[0] + '-expected'
 352 if test_info['type'] == 'mismatch':
 353 ref_file += '-mismatch'
352354 ref_file += self.filesystem.splitext(test_info['reference'])[1]
353355
354356 copy_list.append({'src': test_info['reference'], 'dest': ref_file, 'reference_support_info': test_info['reference_support_info']})

Tools/Scripts/webkitpy/w3c/test_parser.py

@@class TestParser(object):
9797 ref_file = self.filesystem.join(self.source_root_directory, href_match_file.lstrip('/'))
9898 else:
9999 ref_file = self.filesystem.join(self.filesystem.dirname(self.filename), href_match_file)
 100
 101 reference_type = matches[0]['rel'][0] if isinstance(matches[0]['rel'], list) else matches[0]['rel']
100102 except KeyError as e:
101103 # FIXME: Figure out what to do w/ invalid test files.
102104 _log.error('%s has a reference link but is missing the "href"', self.filesystem)

@@class TestParser(object):
108110 if self.ref_doc is None:
109111 self.load_file(ref_file, True)
110112
111  test_info = {'test': self.filename, 'reference': ref_file}
 113 test_info = {'test': self.filename, 'reference': ref_file, 'type': reference_type}
112114
113115 # If the ref file does not live in the same directory as the test file, check it for support files
114116 test_info['reference_support_info'] = {}

Tools/Scripts/webkitpy/w3c/test_parser_unittest.py

@@class TestParserTest(unittest.TestCase):
5353 self.assertTrue('test' in test_info.keys(), 'did not find a test file')
5454 self.assertTrue('reference' in test_info.keys(), 'did not find a reference file')
5555 self.assertTrue(test_info['reference'].startswith(test_path), 'reference path is not correct')
 56 self.assertTrue('type' in test_info.keys(), 'did not find a reference type')
 57 self.assertEqual(test_info['type'], 'match', 'reference type is not correct')
 58 self.assertFalse('refsupport' in test_info.keys(), 'there should be no refsupport files for this test')
 59 self.assertFalse('jstest' in test_info.keys(), 'test should not have been analyzed as a jstest')
 60
 61 def test_analyze_test_reftest_one_mismatch(self):
 62 test_html = """<head>
 63<link rel="mismatch" href="green-box-ref.xht" />
 64</head>
 65"""
 66 test_path = os.path.join(os.path.sep, 'some', 'madeup', 'path')
 67 parser = TestParser(options, os.path.join(test_path, 'somefile.html'))
 68 test_info = parser.analyze_test(test_contents=test_html)
 69
 70 self.assertNotEqual(test_info, None, 'did not find a test')
 71 self.assertTrue('test' in test_info.keys(), 'did not find a test file')
 72 self.assertTrue('reference' in test_info.keys(), 'did not find a reference file')
 73 self.assertTrue(test_info['reference'].startswith(test_path), 'reference path is not correct')
 74 self.assertTrue('type' in test_info.keys(), 'did not find a reference type')
 75 self.assertEqual(test_info['type'], 'mismatch', 'reference type is not correct')
5676 self.assertFalse('refsupport' in test_info.keys(), 'there should be no refsupport files for this test')
5777 self.assertFalse('jstest' in test_info.keys(), 'test should not have been analyzed as a jstest')
5878

LayoutTests/ChangeLog

 12021-11-08 Manuel Rego Casasnovas <rego@igalia.com>
 2
 3 WPT test importer imports rel="mismatch" as the reference
 4 https://bugs.webkit.org/show_bug.cgi?id=207175
 5 <rdar://problem/69332102>
 6
 7 Reviewed by NOBODY (OOPS!).
 8
 9 css/css-fonts/standard-font-family-5.html stars passing now.
 10
 11 * TestExpectations:
 12
1132021-11-02 Gabriel Nava Marino <gnavamarino@apple.com>
214
315 Crash in RenderLayer::rebuildZOrderLists

LayoutTests/imported/w3c/ChangeLog

 12021-11-08 Manuel Rego Casasnovas <rego@igalia.com>
 2
 3 WPT test importer imports rel="mismatch" as the reference
 4 https://bugs.webkit.org/show_bug.cgi?id=207175
 5 <rdar://problem/69332102>
 6
 7 Reviewed by NOBODY (OOPS!).
 8
 9 Re-imported css/css-fonts/standard-font-family-5.html from WPT, so the -expected.html file gets renamed to -expected-mismatch.html.
 10
 11 * web-platform-tests/css/css-fonts/standard-font-family-5-expected-mismatch.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-5-expected.html.
 12 * web-platform-tests/css/css-fonts/w3c-import.log:
 13
1142021-11-01 Michael[tm] Smith <mike@w3.org>
215
316 [WebInspector][CORS] Show HTTP status code in CORS messages.

LayoutTests/TestExpectations

@@webkit.org/b/206881 imported/w3c/web-platform-tests/css/css-fonts/standard-font-
35503550webkit.org/b/206881 imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-20.html [ ImageOnlyFailure ]
35513551webkit.org/b/206881 imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-3.html [ ImageOnlyFailure ]
35523552webkit.org/b/206881 imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-4.html [ ImageOnlyFailure ]
3553 webkit.org/b/206881 imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-5.html [ ImageOnlyFailure ]
35543553webkit.org/b/206881 imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-6.html [ ImageOnlyFailure ]
35553554webkit.org/b/206881 imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-7.html [ ImageOnlyFailure ]
35563555webkit.org/b/206881 imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-8.html [ ImageOnlyFailure ]

LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-5-expected-mismatch.html

 1<!DOCTYPE html>
 2<html>
 3<head>
 4<link rel="author" title="Myles C. Maxfield" href="mailto:mmaxfield@apple.com"/>
 5</head>
 6<body>
 7<div>
 8<div style="display: inline-block; font: 72px 'ui-rounded'; font-synthesis: none;">HeJllo</div>
 9</div>
 10</body>
 11</html>

LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-5-expected.html

1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="author" title="Myles C. Maxfield" href="mailto:mmaxfield@apple.com"/>
5 </head>
6 <body>
7 <div>
8 <div style="display: inline-block; font: 72px 'ui-rounded'; font-synthesis: none;">HeJllo</div>
9 </div>
10 </body>
11 </html>

LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/w3c-import.log

@@List of files:
423423/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-4-expected.html
424424/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-4-notref.html
425425/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-4.html
426 /LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-5-expected.html
 426/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-5-expected-mismatch.html
427427/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-5-notref.html
428428/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-5.html
429429/LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/standard-font-family-6-expected.html