mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 74d709131e3c91d09f1708378648a01957c47b38
This commit is contained in:
parent
e4657c1496
commit
81f079c722
77 changed files with 2043 additions and 524 deletions
|
@ -458,10 +458,15 @@ def check_parsed(repo_root, path, f):
|
|||
if source_file.type == "visual" and not source_file.name_is_visual:
|
||||
errors.append(("CONTENT-VISUAL", "Visual test whose filename doesn't end in '-visual'", path, None))
|
||||
|
||||
about_blank_parts = urlsplit("about:blank")
|
||||
for reftest_node in source_file.reftest_nodes:
|
||||
href = reftest_node.attrib.get("href", "").strip(space_chars)
|
||||
parts = urlsplit(href)
|
||||
if (parts.scheme or parts.netloc) and parts != urlsplit("about:blank"):
|
||||
|
||||
if parts == about_blank_parts:
|
||||
continue
|
||||
|
||||
if (parts.scheme or parts.netloc):
|
||||
errors.append(("ABSOLUTE-URL-REF",
|
||||
"Reference test with a reference file specified via an absolute URL: '%s'" % href, path, None))
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue