Meta: Allow importing WPT ref tests with mismatch conditions

Previously, ref tests with mismatch conditions were misclassified as
text tests.
This commit is contained in:
Tim Ledbetter 2024-12-04 11:41:35 +00:00 committed by Tim Ledbetter
parent 2455618995
commit e059ac6a1a
Notes: github-actions[bot] 2024-12-04 19:50:56 +00:00

View file

@ -83,7 +83,7 @@ class TestTypeIdentifier(HTMLParser):
def handle_starttag(self, tag, attrs):
if tag == "link":
attr_dict = dict(attrs)
if attr_dict["rel"] == "match":
if attr_dict["rel"] == "match" or attr_dict["rel"] == "mismatch":
self.test_type = TestType.REF
self.reference_path = attr_dict["href"]