mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -1,7 +1,3 @@
|
|||
# Import the WebIDL module, so we can do isinstance checks and whatnot
|
||||
import WebIDL
|
||||
|
||||
|
||||
def WebIDLTest(parser, harness):
|
||||
try:
|
||||
parser.parse(
|
||||
|
@ -10,7 +6,7 @@ def WebIDLTest(parser, harness):
|
|||
interface Foo;
|
||||
"""
|
||||
)
|
||||
results = parser.finish()
|
||||
parser.finish()
|
||||
harness.ok(False, "Should fail to parse")
|
||||
except Exception as e:
|
||||
harness.ok(
|
||||
|
@ -25,7 +21,7 @@ def WebIDLTest(parser, harness):
|
|||
enum Foo { "a" };
|
||||
"""
|
||||
)
|
||||
results = parser.finish()
|
||||
parser.finish()
|
||||
harness.ok(False, "Should fail to parse")
|
||||
except Exception as e:
|
||||
harness.ok(
|
||||
|
@ -40,7 +36,7 @@ def WebIDLTest(parser, harness):
|
|||
enum Foo { "b" };
|
||||
"""
|
||||
)
|
||||
results = parser.finish()
|
||||
parser.finish()
|
||||
harness.ok(False, "Should fail to parse")
|
||||
except Exception as e:
|
||||
harness.ok(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue