mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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:
parent
2455618995
commit
e059ac6a1a
Notes:
github-actions[bot]
2024-12-04 19:50:56 +00:00
Author: https://github.com/tcl3
Commit: e059ac6a1a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2754
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue