mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 81962ac8802223d038b188b6f9cb88a0a9c5beee
This commit is contained in:
parent
fe1a057bd1
commit
24183668c4
1960 changed files with 29853 additions and 10555 deletions
|
@ -50,7 +50,7 @@ setup_logging()
|
|||
|
||||
|
||||
ERROR_MSG = """You must fix all errors; for details on how to fix them, see
|
||||
http://web-platform-tests.org/writing-tests/lint-tool.html
|
||||
https://web-platform-tests.org/writing-tests/lint-tool.html
|
||||
|
||||
However, instead of fixing a particular error, it's sometimes
|
||||
OK to add a line to the lint.whitelist file in the root of the
|
||||
|
@ -443,7 +443,7 @@ def check_parsed(repo_root, path, f):
|
|||
not source_file.spec_links):
|
||||
return [("MISSING-LINK", "Testcase file must have a link to a spec", path, None)]
|
||||
|
||||
if source_file.name_is_non_test or source_file.name_is_manual:
|
||||
if source_file.name_is_non_test:
|
||||
return []
|
||||
|
||||
if source_file.markup_type is None:
|
||||
|
@ -453,10 +453,10 @@ def check_parsed(repo_root, path, f):
|
|||
return [("PARSE-FAILED", "Unable to parse file", path, None)]
|
||||
|
||||
if source_file.type == "manual" and not source_file.name_is_manual:
|
||||
return [("CONTENT-MANUAL", "Manual test whose filename doesn't end in '-manual'", path, None)]
|
||||
errors.append(("CONTENT-MANUAL", "Manual test whose filename doesn't end in '-manual'", path, None))
|
||||
|
||||
if source_file.type == "visual" and not source_file.name_is_visual:
|
||||
return [("CONTENT-VISUAL", "Visual test whose filename doesn't end in '-visual'", path, None)]
|
||||
errors.append(("CONTENT-VISUAL", "Visual test whose filename doesn't end in '-visual'", path, None))
|
||||
|
||||
for reftest_node in source_file.reftest_nodes:
|
||||
href = reftest_node.attrib.get("href", "").strip(space_chars)
|
||||
|
@ -666,6 +666,8 @@ def check_script_metadata(repo_root, path, f):
|
|||
errors.append(("UNKNOWN-TIMEOUT-METADATA", "Unexpected value for timeout metadata", path, idx + 1))
|
||||
elif key == b"script":
|
||||
pass
|
||||
elif key == b"variant":
|
||||
pass
|
||||
else:
|
||||
errors.append(("UNKNOWN-METADATA", "Unexpected kind of metadata", path, idx + 1))
|
||||
else:
|
||||
|
@ -813,8 +815,6 @@ def create_parser():
|
|||
help="Output machine-readable JSON format")
|
||||
parser.add_argument("--markdown", action="store_true",
|
||||
help="Output markdown")
|
||||
parser.add_argument("--css-mode", action="store_true",
|
||||
help="Run CSS testsuite specific lints")
|
||||
parser.add_argument("--repo-root", help="The WPT directory. Use this"
|
||||
"option if the lint script exists outside the repository")
|
||||
parser.add_argument("--all", action="store_true", help="If no paths are passed, try to lint the whole "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue