mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 21:14:45 +02:00
Checks features are consistent in parsetestrecord
This commit is contained in:
parent
ada06362dc
commit
c3cbc32745
@ -89,4 +89,14 @@ class CheckParseTestRecord(Check):
|
|||||||
elif "flags" in test_rec:
|
elif "flags" in test_rec:
|
||||||
return "Unexpected flags present in parseTestRecord"
|
return "Unexpected flags present in parseTestRecord"
|
||||||
|
|
||||||
|
# Ensure all features in `test_rec` are consistent with `meta`.
|
||||||
|
if "features" in meta:
|
||||||
|
if "features" not in test_rec:
|
||||||
|
return "Features not present in parseTestRecord"
|
||||||
|
|
||||||
|
if meta["features"] != test_rec["features"]:
|
||||||
|
return "Features don't match parseTestRecord"
|
||||||
|
elif "features" in test_rec:
|
||||||
|
return "Unexpected features present in parseTestRecord"
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user