mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Update WebIDL.py (#32495)
* Update WebIDL.py * Update WebIDL.py * Add builtin-array.patch * Fix CodegenRust.py and Configuration.py * Fix missing downcasts * mach fmt * Update check and comment to explain why we need this check * Update Global of DissimilarOriginWindow.webidl
This commit is contained in:
parent
19067366df
commit
8eed3b442b
77 changed files with 1658 additions and 793 deletions
4
third_party/WebIDL/tests/test_const.py
vendored
4
third_party/WebIDL/tests/test_const.py
vendored
|
@ -64,7 +64,7 @@ def WebIDLTest(parser, harness):
|
|||
len(iface.members), len(expected), "Expect %s members" % len(expected)
|
||||
)
|
||||
|
||||
for (const, (QName, name, type, value)) in zip(iface.members, expected):
|
||||
for const, (QName, name, type, value) in zip(iface.members, expected):
|
||||
harness.ok(isinstance(const, WebIDL.IDLConst), "Should be an IDLConst")
|
||||
harness.ok(const.isConst(), "Const is a const")
|
||||
harness.ok(not const.isAttr(), "Const is not an attr")
|
||||
|
@ -91,6 +91,6 @@ def WebIDLTest(parser, harness):
|
|||
"""
|
||||
)
|
||||
parser.finish()
|
||||
except:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Nullable types are not allowed for consts.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue