Update web-platform-tests to revision ee82278e15570e573d87fb80179ff8231b6db61a

This commit is contained in:
WPT Sync Bot 2018-06-03 21:07:04 -04:00
parent d23bc4f1a4
commit 83e2dc11b0
278 changed files with 13348 additions and 10515 deletions

View file

@ -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":

View file

@ -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),

View file

@ -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('"', "&quot;").replace(">", "&gt;")
attribute = value.decode('utf-8').replace("&", "&amp;").replace('"', "&quot;")
return '<script src="%s"></script>' % attribute
if key == b"title":
value = value.decode('utf-8').replace("&", "&amp;").replace("<", "&lt;")
return '<title>%s</title>' % value
return None

View file

@ -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: