aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/parser/tests/test_enum.py
diff options
context:
space:
mode:
authorAgostonSzepessy <agszepp@gmail.com>2016-03-06 18:47:35 -0500
committerAgostonSzepessy <agszepp@gmail.com>2016-03-22 23:13:30 -0400
commitd3528ffce4092e0b28b9494f96555368bf8945b9 (patch)
treeaf13c09d65a3a61e6131b96e4aa45e6bab27905b /components/script/dom/bindings/codegen/parser/tests/test_enum.py
parent003fdd41769652188a5954e6499f3cb44eef6b10 (diff)
downloadservo-d3528ffce4092e0b28b9494f96555368bf8945b9.tar.gz
servo-d3528ffce4092e0b28b9494f96555368bf8945b9.zip
components/script/dom/bindings/codegen/parser/update.sh now downloads all
the latest *.py tests from https://hg.mozilla.org/mozilla-central/archive/tip.tar.gz/dom/bindings/parser/tests/
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/tests/test_enum.py')
-rw-r--r--components/script/dom/bindings/codegen/parser/tests/test_enum.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/parser/tests/test_enum.py b/components/script/dom/bindings/codegen/parser/tests/test_enum.py
index 69a6932062d..86228939181 100644
--- a/components/script/dom/bindings/codegen/parser/tests/test_enum.py
+++ b/components/script/dom/bindings/codegen/parser/tests/test_enum.py
@@ -79,3 +79,15 @@ def WebIDLTest(parser, harness):
threw = True
harness.ok(threw, "Should not allow a bogus default value for an enum")
+
+ # Now reset our parser
+ parser = parser.reset()
+ parser.parse("""
+ enum Enum {
+ "a",
+ "b",
+ "c",
+ };
+ """)
+ results = parser.finish()
+ harness.check(len(results), 1, "Should allow trailing comma in enum")