summaryrefslogtreecommitdiffstats
path: root/dom/bindings/parser/tests/test_forward_decl.py
diff options
context:
space:
mode:
Diffstat (limited to 'dom/bindings/parser/tests/test_forward_decl.py')
-rw-r--r--dom/bindings/parser/tests/test_forward_decl.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/bindings/parser/tests/test_forward_decl.py b/dom/bindings/parser/tests/test_forward_decl.py
new file mode 100644
index 000000000..cac24c832
--- /dev/null
+++ b/dom/bindings/parser/tests/test_forward_decl.py
@@ -0,0 +1,15 @@
+import WebIDL
+
+def WebIDLTest(parser, harness):
+ parser.parse("""
+ interface ForwardDeclared;
+ interface ForwardDeclared;
+
+ interface TestForwardDecl {
+ attribute ForwardDeclared foo;
+ };
+ """)
+
+ results = parser.finish()
+
+ harness.ok(True, "TestForwardDeclared interface parsed without error.")