mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -105,13 +105,17 @@ def checkEquivalent(iface, harness):
|
|||
if callable(a1):
|
||||
try:
|
||||
v1 = a1()
|
||||
except:
|
||||
# Can't call a1 with no args, so skip this attriute.
|
||||
except AssertionError:
|
||||
# Various methods assert that they're called on objects of
|
||||
# the right type, skip them if the assert fails.
|
||||
continue
|
||||
except TypeError:
|
||||
# a1 requires positional arguments, so skip this attribute.
|
||||
continue
|
||||
|
||||
try:
|
||||
a2 = getattr(type2, attr)
|
||||
except:
|
||||
except WebIDL.WebIDLError:
|
||||
harness.ok(
|
||||
False,
|
||||
"Missing %s attribute on type %s in %s" % (attr, type2, iface),
|
||||
|
@ -131,7 +135,7 @@ def checkEquivalent(iface, harness):
|
|||
else:
|
||||
try:
|
||||
a2 = getattr(type2, attr)
|
||||
except:
|
||||
except WebIDL.WebIDLError:
|
||||
harness.ok(
|
||||
False,
|
||||
"Missing %s attribute on type %s in %s" % (attr, type2, iface),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue