@@ -1114,3 +1114,78 @@ def test_find_manifests_for_paths(tmp_path) -> None:
11141114 assert test_scheduling .find_manifests_for_paths (
11151115 str (tmp_path ), ["absolute_path_with_subdirglob/subdir/asd.js" ]
11161116 ) == {"test/chrome.toml" }
1117+
1118+ (tmp_path / "testing/web-platform/tests/html/semantics" ).mkdir (parents = True )
1119+ (tmp_path / "testing/web-platform/tests/.gitignore" ).touch ()
1120+ (
1121+ tmp_path
1122+ / "testing/web-platform/tests/html/semantics/rellist-feature-detection.html"
1123+ ).touch ()
1124+ (tmp_path / "testing/web-platform/tests/html/semantics/META.yml" ).touch ()
1125+ (tmp_path / "testing/web-platform/tests/html/semantics/interactive-elements" ).mkdir (
1126+ parents = True
1127+ )
1128+ (
1129+ tmp_path
1130+ / "testing/web-platform/tests/html/semantics/interactive-elements"
1131+ / "contextmenu-historical.html"
1132+ ).touch ()
1133+ (tmp_path / "testing/web-platform/mozilla/meta/pointerevents" ).mkdir (parents = True )
1134+ (
1135+ tmp_path
1136+ / "testing/web-platform/mozilla/meta/pointerevents/pointerevent_click_during_parent_capture.html.ini"
1137+ ).touch ()
1138+ (tmp_path / "testing/web-platform/mozilla/tests/pointerevents" ).mkdir (parents = True )
1139+ (
1140+ tmp_path
1141+ / "testing/web-platform/mozilla/tests/pointerevents/pointerevent_click_during_parent_capture.html"
1142+ ).touch ()
1143+ (tmp_path / "testing/web-platform/tests/encrypted-media/content" ).mkdir (
1144+ parents = True
1145+ )
1146+ (
1147+ tmp_path
1148+ / "testing/web-platform/tests/encrypted-media/clearkey-events.https.html"
1149+ ).touch ()
1150+ (
1151+ tmp_path
1152+ / "testing/web-platform/tests/encrypted-media/content/content-metadata.js"
1153+ ).touch ()
1154+
1155+ assert (
1156+ test_scheduling .find_manifests_for_paths (
1157+ str (tmp_path ), ["testing/web-platform/tests/.gitignore" ]
1158+ )
1159+ == set ()
1160+ )
1161+
1162+ assert test_scheduling .find_manifests_for_paths (
1163+ str (tmp_path ),
1164+ ["testing/web-platform/tests/html/semantics/rellist-feature-detection.html" ],
1165+ ) == {"testing/web-platform/tests/html/semantics" }
1166+
1167+ assert (
1168+ test_scheduling .find_manifests_for_paths (
1169+ str (tmp_path ), ["testing/web-platform/tests/html/semantics/META.yml" ]
1170+ )
1171+ == set ()
1172+ )
1173+
1174+ assert test_scheduling .find_manifests_for_paths (
1175+ str (tmp_path ),
1176+ [
1177+ "testing/web-platform/tests/html/semantics/interactive-elements/contextmenu-historical.html"
1178+ ],
1179+ ) == {"testing/web-platform/tests/html/semantics/interactive-elements" }
1180+
1181+ assert test_scheduling .find_manifests_for_paths (
1182+ str (tmp_path ),
1183+ [
1184+ "testing/web-platform/mozilla/meta/pointerevents/pointerevent_click_during_parent_capture.html.ini"
1185+ ],
1186+ ) == {"testing/web-platform/mozilla/tests/pointerevents" }
1187+
1188+ assert test_scheduling .find_manifests_for_paths (
1189+ str (tmp_path ),
1190+ ["testing/web-platform/tests/encrypted-media/content/content-metadata.js" ],
1191+ ) == {"testing/web-platform/tests/encrypted-media" }
0 commit comments