aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py')
-rw-r--r--tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py b/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py
index 8b0fb944ea5..301c624b06d 100644
--- a/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py
+++ b/tests/wpt/web-platform-tests/tools/manifest/tests/test_sourcefile.py
@@ -130,6 +130,20 @@ def test_name_is_tentative():
assert not s.name_is_tentative
+@pytest.mark.parametrize("rel_path", [
+ "webdriver/tests/foo.py",
+ "webdriver/tests/print/foo.py",
+ "webdriver/tests/foo-crash.py",
+ "webdriver/tests/foo-visual.py",
+])
+def test_name_is_webdriver(rel_path):
+ s = create(rel_path)
+ assert s.name_is_webdriver
+
+ item_type, items = s.manifest_items()
+ assert item_type == "wdspec"
+
+
def test_worker():
s = create("html/test.worker.js")
assert not s.name_is_non_test