summaryrefslogtreecommitdiffstats
path: root/dom/bindings/parser/tests/test_builtin_filename.py
diff options
context:
space:
mode:
Diffstat (limited to 'dom/bindings/parser/tests/test_builtin_filename.py')
-rw-r--r--dom/bindings/parser/tests/test_builtin_filename.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/bindings/parser/tests/test_builtin_filename.py b/dom/bindings/parser/tests/test_builtin_filename.py
new file mode 100644
index 0000000000..6c913bba82
--- /dev/null
+++ b/dom/bindings/parser/tests/test_builtin_filename.py
@@ -0,0 +1,14 @@
+import WebIDL
+
+
+def WebIDLTest(parser, harness):
+ parser.parse(
+ """
+ interface Test {
+ attribute long b;
+ };
+ """
+ )
+
+ attr = parser.finish()[0].members[0]
+ harness.check(attr.type.filename(), "<builtin>", "Filename on builtin type")