Ver código fonte

Meta: Allow importing WPT ref tests with mismatch conditions

Previously, ref tests with mismatch conditions were misclassified as
text tests.
Tim Ledbetter 7 meses atrás
pai
commit
e059ac6a1a
1 arquivos alterados com 1 adições e 1 exclusões
  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):
         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"]