Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / dom / bindings / parser / tests / test_special_methods_uniqueness.py
blob948c6392040cf632aa277c27665987ebc8212535
1 import WebIDL
4 def WebIDLTest(parser, harness):
5 threw = False
6 try:
7 parser.parse(
8 """
9 interface SpecialMethodUniqueness1 {
10 getter deleter boolean (DOMString name);
11 getter boolean (DOMString name);
13 """
16 parser.finish()
17 except WebIDL.WebIDLError:
18 threw = True
20 harness.ok(threw, "Should have thrown.")
22 threw = False
23 try:
24 parser.parse(
25 """
26 interface SpecialMethodUniqueness1 {
27 deleter boolean (DOMString name);
28 getter deleter boolean (DOMString name);
30 """
33 parser.finish()
34 except WebIDL.WebIDLError:
35 threw = True
37 harness.ok(threw, "Should have thrown.")
39 threw = False
40 try:
41 parser.parse(
42 """
43 interface SpecialMethodUniqueness1 {
44 setter boolean (DOMString name);
45 setter boolean (DOMString name);
47 """
50 parser.finish()
51 except WebIDL.WebIDLError:
52 threw = True
54 harness.ok(threw, "Should have thrown.")