Browse Source

Meta: Allow importing WPT ref tests with mismatch conditions

Previously, ref tests with mismatch conditions were misclassified as
text tests.
Tim Ledbetter 7 tháng trước cách đây
mục cha
commit
e059ac6a1a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Meta/import-wpt-test.py

+ 1 - 1
Meta/import-wpt-test.py

@@ -83,7 +83,7 @@ class TestTypeIdentifier(HTMLParser):
     def handle_starttag(self, tag, attrs):
     def handle_starttag(self, tag, attrs):
         if tag == "link":
         if tag == "link":
             attr_dict = dict(attrs)
             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.test_type = TestType.REF
                 self.reference_path = attr_dict["href"]
                 self.reference_path = attr_dict["href"]