test_sanity.py (252B)
1 def WebIDLTest(parser, harness): 2 parser.parse("") 3 parser.finish() 4 harness.ok(True, "Parsing nothing doesn't throw.") 5 parser.parse("interface Foo {};") 6 parser.finish() 7 harness.ok(True, "Parsing a silly interface doesn't throw.")