mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
8
third_party/WebIDL/tests/test_attr.py
vendored
8
third_party/WebIDL/tests/test_attr.py
vendored
|
@ -147,7 +147,7 @@ def WebIDLTest(parser, harness):
|
|||
"""
|
||||
)
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should not allow [SetterThrows] on readonly attributes")
|
||||
|
||||
|
@ -162,7 +162,7 @@ def WebIDLTest(parser, harness):
|
|||
"""
|
||||
)
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should spell [Throws] correctly")
|
||||
|
||||
|
@ -177,7 +177,7 @@ def WebIDLTest(parser, harness):
|
|||
"""
|
||||
)
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(
|
||||
threw, "Should not allow [SameObject] on attributes not of interface type"
|
||||
|
@ -194,6 +194,6 @@ def WebIDLTest(parser, harness):
|
|||
"""
|
||||
)
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(not threw, "Should allow [SameObject] on attributes of interface type")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue