summaryrefslogtreecommitdiffstats
path: root/dom/bindings/parser/tests/test_legacyTreatNonObjectAsNull.py
blob: 380ccdc4e72358c9d4cd9a0084a9c8243ecaad9d (plain)
1
2
3
4
5
6
7
8
9
10
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")