Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / dom / bindings / parser / tests / test_empty_enum.py
blobad002caa4ee8a303bd70b139a82d72efb5b7e18e
1 import WebIDL
4 def WebIDLTest(parser, harness):
5 try:
6 parser.parse(
7 """
8 enum TestEmptyEnum {
9 };
10 """
13 harness.ok(False, "Should have thrown!")
14 except WebIDL.WebIDLError:
15 harness.ok(True, "Parsing TestEmptyEnum enum should fail")
17 parser.finish()