瀏覽代碼

Meta: Allow importing WPT ref tests with mismatch conditions

Previously, ref tests with mismatch conditions were misclassified as
text tests.
Tim Ledbetter 7 月之前
父節點
當前提交
e059ac6a1a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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"]