| Summary: | import-w3c-tests should rely on <meta name="flags"> to detect CSS manual tests | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Frédéric Wang (:fredw) <fred.wang> | ||||
| Component: | Tools / Tests | Assignee: | Frédéric Wang (:fredw) <fred.wang> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | ews-watchlist, glenn, lforschler, Ms2ger, rego, webkit-bug-importer, youennf | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://github.com/web-platform-tests/wpt/issues/5381 | ||||||
| Attachments: |
|
||||||
|
Description
Frédéric Wang (:fredw)
2018-06-03 23:24:53 PDT
Created attachment 341895 [details]
Patch
LGTM Comment on attachment 341895 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=341895&action=review > Tools/ChangeLog:14 > + <meta name="flags"> are manual are non-manual according to CSS WG rules. s/are/or/ > Tools/Scripts/webkitpy/w3c/test_parser.py:119 > + elif self.is_wpt_manualtest() or self.is_css_manualtest(): We should probably merge is_wpt_manualtest and is_css_manualtest > Tools/Scripts/webkitpy/w3c/test_parser_unittest.py:183 > + self.assertEqual(test_info, None, 'test_info is not None') Maybe we should add asis which is a valid css flag but not classified as manual. > Tools/Scripts/webkitpy/w3c/test_parser_unittest.py:194 > + self.assertTrue(test_info['manualtest'], 'test with CSS flag %s is not manual' % flag) I never know whether the assertion message tells what is expected or what is unexpected. I would rewrite it to 'test with CSS flag %s should be manual' Comment on attachment 341895 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=341895&action=review >> Tools/ChangeLog:14 >> + <meta name="flags"> are manual are non-manual according to CSS WG rules. > > s/are/or/ Done >> Tools/Scripts/webkitpy/w3c/test_parser.py:119 >> + elif self.is_wpt_manualtest() or self.is_css_manualtest(): > > We should probably merge is_wpt_manualtest and is_css_manualtest Done >> Tools/Scripts/webkitpy/w3c/test_parser_unittest.py:183 >> + self.assertEqual(test_info, None, 'test_info is not None') > > Maybe we should add asis which is a valid css flag but not classified as manual. Done. >> Tools/Scripts/webkitpy/w3c/test_parser_unittest.py:194 >> + self.assertTrue(test_info['manualtest'], 'test with CSS flag %s is not manual' % flag) > > I never know whether the assertion message tells what is expected or what is unexpected. > I would rewrite it to 'test with CSS flag %s should be manual' Yeah, I was also confused by existing tests. Done here and as well above "test_info should be None" Committed r232506: <https://trac.webkit.org/changeset/232506> |