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