mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
21
third_party/WebIDL/tests/test_namespace.py
vendored
21
third_party/WebIDL/tests/test_namespace.py
vendored
|
@ -1,3 +1,6 @@
|
|||
import WebIDL
|
||||
|
||||
|
||||
def WebIDLTest(parser, harness):
|
||||
parser.parse(
|
||||
"""
|
||||
|
@ -71,7 +74,7 @@ def WebIDLTest(parser, harness):
|
|||
)
|
||||
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should have thrown.")
|
||||
|
||||
|
@ -87,7 +90,7 @@ def WebIDLTest(parser, harness):
|
|||
)
|
||||
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should have thrown.")
|
||||
|
||||
|
@ -107,7 +110,7 @@ def WebIDLTest(parser, harness):
|
|||
)
|
||||
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should have thrown.")
|
||||
|
||||
|
@ -127,7 +130,7 @@ def WebIDLTest(parser, harness):
|
|||
)
|
||||
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should have thrown.")
|
||||
|
||||
|
@ -147,7 +150,7 @@ def WebIDLTest(parser, harness):
|
|||
)
|
||||
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should have thrown.")
|
||||
|
||||
|
@ -167,7 +170,7 @@ def WebIDLTest(parser, harness):
|
|||
)
|
||||
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should have thrown.")
|
||||
|
||||
|
@ -187,7 +190,7 @@ def WebIDLTest(parser, harness):
|
|||
)
|
||||
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should have thrown.")
|
||||
|
||||
|
@ -207,7 +210,7 @@ def WebIDLTest(parser, harness):
|
|||
)
|
||||
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should have thrown.")
|
||||
|
||||
|
@ -227,6 +230,6 @@ def WebIDLTest(parser, harness):
|
|||
)
|
||||
|
||||
results = parser.finish()
|
||||
except Exception as x:
|
||||
except WebIDL.WebIDLError:
|
||||
threw = True
|
||||
harness.ok(threw, "Should have thrown.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue