summaryrefslogtreecommitdiffstats
path: root/dom/bindings/parser/tests/test_legacyTreatNonObjectAsNull.py
diff options
context:
space:
mode:
Diffstat (limited to 'dom/bindings/parser/tests/test_legacyTreatNonObjectAsNull.py')
-rw-r--r--dom/bindings/parser/tests/test_legacyTreatNonObjectAsNull.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/bindings/parser/tests/test_legacyTreatNonObjectAsNull.py b/dom/bindings/parser/tests/test_legacyTreatNonObjectAsNull.py
new file mode 100644
index 0000000000..380ccdc4e7
--- /dev/null
+++ b/dom/bindings/parser/tests/test_legacyTreatNonObjectAsNull.py
@@ -0,0 +1,11 @@
+def WebIDLTest(parser, harness):
+ parser.parse(
+ """
+ [LegacyTreatNonObjectAsNull] callback Function = any(any... arguments);
+ """
+ )
+
+ results = parser.finish()
+
+ callback = results[0]
+ harness.check(callback._treatNonObjectAsNull, True, "Got the expected value")