mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Update web-platform-tests to revision ee82278e15570e573d87fb80179ff8231b6db61a
This commit is contained in:
parent
d23bc4f1a4
commit
83e2dc11b0
278 changed files with 13348 additions and 10515 deletions
|
@ -664,6 +664,8 @@ def check_script_metadata(repo_root, path, f):
|
|||
elif key == b"timeout":
|
||||
if value != b"long":
|
||||
errors.append(("UNKNOWN-TIMEOUT-METADATA", "Unexpected value for timeout metadata", path, idx + 1))
|
||||
elif key == b"title":
|
||||
pass
|
||||
elif key == b"script":
|
||||
pass
|
||||
elif key == b"variant":
|
||||
|
|
|
@ -521,6 +521,7 @@ def test_css_missing_file_manual():
|
|||
"foo.any.js",
|
||||
])
|
||||
@pytest.mark.parametrize("input,error", [
|
||||
(b"""//META: title=foo\n""", None),
|
||||
(b"""//META: timeout=long\n""", None),
|
||||
(b"""// META: timeout=long\n""", None),
|
||||
(b"""// META: timeout=long\n""", None),
|
||||
|
|
|
@ -160,8 +160,11 @@ class HtmlWrapperHandler(WrapperHandler):
|
|||
if value == b"long":
|
||||
return '<meta name="timeout" content="long">'
|
||||
if key == b"script":
|
||||
attribute = value.decode('utf-8').replace('"', """).replace(">", ">")
|
||||
attribute = value.decode('utf-8').replace("&", "&").replace('"', """)
|
||||
return '<script src="%s"></script>' % attribute
|
||||
if key == b"title":
|
||||
value = value.decode('utf-8').replace("&", "&").replace("<", "<")
|
||||
return '<title>%s</title>' % value
|
||||
return None
|
||||
|
||||
|
||||
|
|
|
@ -86,12 +86,6 @@ class RunInfo(dict):
|
|||
elif "debug" not in self:
|
||||
# Default to release
|
||||
self["debug"] = False
|
||||
if product == "firefox" and "stylo" not in self:
|
||||
self["stylo"] = False
|
||||
if "STYLO_FORCE_ENABLED" in os.environ:
|
||||
self["stylo"] = True
|
||||
if "STYLO_FORCE_DISABLED" in os.environ:
|
||||
self["stylo"] = False
|
||||
if browser_version:
|
||||
self["browser_version"] = browser_version
|
||||
if extras is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue