mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
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:
committed by
Tim Ledbetter
parent
2455618995
commit
e059ac6a1a
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user