mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision e45156b5e558c062a609356905c83a0258c516e3
This commit is contained in:
parent
9f6005be16
commit
5fcf52d946
199 changed files with 4430 additions and 530 deletions
|
@ -216,7 +216,8 @@ class PathFilter(object):
|
|||
for rule_dir in [None, dirpath]:
|
||||
if name in literals.get(rule_dir, empty):
|
||||
exclude = literals[rule_dir][name]
|
||||
if not any(rule.match(path) for rule in exclude):
|
||||
if not any(rule.match(name if name_only else path)
|
||||
for name_only, rule in exclude):
|
||||
# Skip this item
|
||||
self.cache[path] = True
|
||||
break
|
||||
|
|
|
@ -51,6 +51,9 @@ filter_data = [
|
|||
(["#foo", "", "a*", "!a.py"],
|
||||
[("", ["foo"], ["a", "a.foo", "a.py"])],
|
||||
[(["foo"], ["a.py"])]),
|
||||
(["a.foo", "!a.py"],
|
||||
[("", ["foo"], ["a", "a.foo", "a.py"])],
|
||||
[(["foo"], ["a", "a.py"])]),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -327,10 +327,10 @@ class PrintRegexp(Regexp):
|
|||
description = "Print function used"
|
||||
|
||||
class LayoutTestsRegexp(Regexp):
|
||||
pattern = br"eventSender|testRunner|window\.internals"
|
||||
pattern = br"(eventSender|testRunner|internals)\."
|
||||
name = "LAYOUTTESTS APIS"
|
||||
file_extensions = [".html", ".htm", ".js", ".xht", ".xhtml", ".svg"]
|
||||
description = "eventSender/testRunner/window.internals used; these are LayoutTests-specific APIs (WebKit/Blink)"
|
||||
description = "eventSender/testRunner/internals used; these are LayoutTests-specific APIs (WebKit/Blink)"
|
||||
|
||||
class SpecialPowersRegexp(Regexp):
|
||||
pattern = b"SpecialPowers"
|
||||
|
|
|
@ -168,7 +168,7 @@ def test_eventSender():
|
|||
assert errors == [("PARSE-FAILED", "Unable to parse file", filename, 1)]
|
||||
else:
|
||||
assert errors == [('LAYOUTTESTS APIS',
|
||||
'eventSender/testRunner/window.internals used; these are LayoutTests-specific APIs (WebKit/Blink)',
|
||||
'eventSender/testRunner/internals used; these are LayoutTests-specific APIs (WebKit/Blink)',
|
||||
filename,
|
||||
1)]
|
||||
|
||||
|
@ -183,12 +183,12 @@ def test_testRunner():
|
|||
assert errors == [("PARSE-FAILED", "Unable to parse file", filename, 1)]
|
||||
else:
|
||||
assert errors == [('LAYOUTTESTS APIS',
|
||||
'eventSender/testRunner/window.internals used; these are LayoutTests-specific APIs (WebKit/Blink)',
|
||||
'eventSender/testRunner/internals used; these are LayoutTests-specific APIs (WebKit/Blink)',
|
||||
filename,
|
||||
1)]
|
||||
|
||||
|
||||
def test_windowDotInternals():
|
||||
def test_internals():
|
||||
error_map = check_with_files(b"<script>if (window.internals) { internals.doAThing(); }</script>")
|
||||
|
||||
for (filename, (errors, kind)) in error_map.items():
|
||||
|
@ -198,7 +198,7 @@ def test_windowDotInternals():
|
|||
assert errors == [("PARSE-FAILED", "Unable to parse file", filename, 1)]
|
||||
else:
|
||||
assert errors == [('LAYOUTTESTS APIS',
|
||||
'eventSender/testRunner/window.internals used; these are LayoutTests-specific APIs (WebKit/Blink)',
|
||||
'eventSender/testRunner/internals used; these are LayoutTests-specific APIs (WebKit/Blink)',
|
||||
filename,
|
||||
1)]
|
||||
|
||||
|
|
|
@ -483,17 +483,17 @@ def load_and_update(tests_root,
|
|||
allow_cached=allow_cached)
|
||||
except ManifestVersionMismatch:
|
||||
logger.info("Manifest version changed, rebuilding")
|
||||
rebuild = True
|
||||
|
||||
if manifest is not None and manifest.url_base != url_base:
|
||||
logger.info("Manifest url base did not match, rebuilding")
|
||||
rebuild = True
|
||||
manifest = None
|
||||
|
||||
if manifest is None:
|
||||
manifest = Manifest(tests_root, url_base)
|
||||
rebuild = True
|
||||
update = True
|
||||
|
||||
if update:
|
||||
if rebuild or update:
|
||||
tree = vcs.get_tree(tests_root, manifest, manifest_path, cache_root,
|
||||
working_copy, rebuild)
|
||||
changed = manifest.update(tree)
|
||||
|
|
|
@ -23,8 +23,16 @@
|
|||
<div class="alert alert-warning">
|
||||
This runner does not fully support all test types and has a number of
|
||||
<a href="https://github.com/web-platform-tests/wpt/labels/runner">known issues</a>.
|
||||
<span id="runner-contact-info"></span>
|
||||
<code>./wpt run</code> is a more well-supported runner, see the documentation on
|
||||
<a href="https://web-platform-tests.org/running-tests/">running tests</a>.
|
||||
<script>
|
||||
if (location.host == "w3c-test.org") {
|
||||
document.getElementById("runner-contact-info")
|
||||
.innerHTML = ' If this runner isn’t working, contact'
|
||||
+ ' <a href="mailto:mike@w3.org">mike@w3.org</a>. '
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div id="testControl" class="panel panel-default">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue