From e059ac6a1a4576724c602d77f30cdd3fa59de80a Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Wed, 4 Dec 2024 11:41:35 +0000 Subject: [PATCH] Meta: Allow importing WPT ref tests with mismatch conditions Previously, ref tests with mismatch conditions were misclassified as text tests. --- Meta/import-wpt-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/import-wpt-test.py b/Meta/import-wpt-test.py index c971895c4c1..901d8f0de4b 100755 --- a/Meta/import-wpt-test.py +++ b/Meta/import-wpt-test.py @@ -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"]