Update web-platform-tests to revision 85e8612e81c8b478c8cac7260436646e48d3f7ae

This commit is contained in:
WPT Sync Bot 2019-04-16 21:36:56 -04:00
parent a14b952fa3
commit 87dcce0f06
66 changed files with 697 additions and 266 deletions

View file

@ -84,8 +84,7 @@ def get_paths(**kwargs):
revish = kwargs["revish"]
changed, _ = files_changed(revish)
all_changed = set(os.path.relpath(item, wpt_root)
for item in set(changed))
all_changed = {os.path.relpath(item, wpt_root) for item in set(changed)}
return all_changed

View file

@ -1,6 +1,6 @@
from tools.ci import jobs
all_jobs = set([
all_jobs = {
"build_css",
"lint",
"manifest_upload",
@ -11,9 +11,9 @@ all_jobs = set([
"wpt_integration",
"wptrunner_infrastructure",
"wptrunner_unittest",
])
}
default_jobs = set(["lint", "manifest_upload"])
default_jobs = {"lint", "manifest_upload"}
def test_all():
@ -25,19 +25,19 @@ def test_default():
def test_testharness():
assert jobs.get_jobs(["resources/testharness.js"]) == default_jobs | set(["resources_unittest",
"wptrunner_infrastructure"])
assert jobs.get_jobs(["resources/testharness.js"]) == default_jobs | {"resources_unittest",
"wptrunner_infrastructure"}
assert jobs.get_jobs(["resources/testharness.js"],
includes=["resources_unittest"]) == set(["resources_unittest"])
includes=["resources_unittest"]) == {"resources_unittest"}
assert jobs.get_jobs(["tools/wptserve/wptserve/config.py"],
includes=["resources_unittest"]) == set(["resources_unittest"])
includes=["resources_unittest"]) == {"resources_unittest"}
assert jobs.get_jobs(["foo/resources/testharness.js"],
includes=["resources_unittest"]) == set()
def test_stability():
assert jobs.get_jobs(["dom/historical.html"],
includes=["stability"]) == set(["stability"])
includes=["stability"]) == {"stability"}
assert jobs.get_jobs(["tools/pytest.ini"],
includes=["stability"]) == set()
assert jobs.get_jobs(["serve"],
@ -55,15 +55,15 @@ def test_stability():
assert jobs.get_jobs(["css/build-css-testsuite.sh"],
includes=["stability"]) == set()
assert jobs.get_jobs(["css/CSS21/test-001.html"],
includes=["stability"]) == set(["stability"])
includes=["stability"]) == {"stability"}
assert jobs.get_jobs(["css/build-css-testsuite.sh",
"css/CSS21/test-001.html"],
includes=["stability"]) == set(["stability"])
includes=["stability"]) == {"stability"}
def test_tools_unittest():
assert jobs.get_jobs(["tools/ci/test/test_jobs.py"],
includes=["tools_unittest"]) == set(["tools_unittest"])
includes=["tools_unittest"]) == {"tools_unittest"}
assert jobs.get_jobs(["dom/tools/example.py"],
includes=["tools_unittest"]) == set()
assert jobs.get_jobs(["dom/historical.html"],
@ -72,38 +72,38 @@ def test_tools_unittest():
def test_wptrunner_unittest():
assert jobs.get_jobs(["tools/wptrunner/wptrunner/wptrunner.py"],
includes=["wptrunner_unittest"]) == set(["wptrunner_unittest"])
includes=["wptrunner_unittest"]) == {"wptrunner_unittest"}
assert jobs.get_jobs(["tools/example.py"],
includes=["wptrunner_unittest"]) == set(["wptrunner_unittest"])
includes=["wptrunner_unittest"]) == {"wptrunner_unittest"}
def test_build_css():
assert jobs.get_jobs(["css/css-build-testsuites.sh"],
includes=["build_css"]) == set(["build_css"])
includes=["build_css"]) == {"build_css"}
assert jobs.get_jobs(["css/CSS21/test.html"],
includes=["build_css"]) == set(["build_css"])
includes=["build_css"]) == {"build_css"}
assert jobs.get_jobs(["html/css/CSS21/test.html"],
includes=["build_css"]) == set()
def test_update_built():
assert jobs.get_jobs(["2dcontext/foo.html"],
includes=["update_built"]) == set(["update_built"])
includes=["update_built"]) == {"update_built"}
assert jobs.get_jobs(["html/foo.html"],
includes=["update_built"]) == set(["update_built"])
includes=["update_built"]) == {"update_built"}
assert jobs.get_jobs(["offscreen-canvas/foo.html"],
includes=["update_built"]) == set(["update_built"])
includes=["update_built"]) == {"update_built"}
def test_wpt_integration():
assert jobs.get_jobs(["tools/wpt/wpt.py"],
includes=["wpt_integration"]) == set(["wpt_integration"])
includes=["wpt_integration"]) == {"wpt_integration"}
assert jobs.get_jobs(["tools/wptrunner/wptrunner/wptrunner.py"],
includes=["wpt_integration"]) == set(["wpt_integration"])
includes=["wpt_integration"]) == {"wpt_integration"}
def test_wpt_infrastructure():
assert jobs.get_jobs(["tools/hammer.html"],
includes=["wptrunner_infrastructure"]) == set(["wptrunner_infrastructure"])
includes=["wptrunner_infrastructure"]) == {"wptrunner_infrastructure"}
assert jobs.get_jobs(["infrastructure/assumptions/ahem.html"],
includes=["wptrunner_infrastructure"]) == set(["wptrunner_infrastructure"])
includes=["wptrunner_infrastructure"]) == {"wptrunner_infrastructure"}

View file

@ -6,12 +6,12 @@ from tools.ci import run_tc
@pytest.mark.parametrize("msg,expected", [
("Some initial line\n\ntc-jobs:foo,bar", set(["foo", "bar"])),
("Some initial line\n\ntc-jobs:foo, bar", set(["foo", "bar"])),
("tc-jobs:foo, bar \nbaz", set(["foo", "bar"])),
("tc-jobs:all", set(["all"])),
("Some initial line\n\ntc-jobs:foo,bar", {"foo", "bar"}),
("Some initial line\n\ntc-jobs:foo, bar", {"foo", "bar"}),
("tc-jobs:foo, bar \nbaz", {"foo", "bar"}),
("tc-jobs:all", {"all"}),
("", set()),
("tc-jobs:foo\ntc-jobs:bar", set(["foo"]))])
("tc-jobs:foo\ntc-jobs:bar", {"foo"})])
@pytest.mark.parametrize("event", [
{"commits": [{"message": "<message>"}]},
{"pull_request": {"body": "<message>"}}