update to latest tests

This commit is contained in:
Prabhjyot Singh Sodhi
2016-01-22 02:57:06 +05:30
committed by Prabhjyot Singh Sodhi
parent 175b3c2d27
commit da40818f25
8 changed files with 156 additions and 29 deletions

View File

@@ -2,11 +2,11 @@ import WebIDL
def WebIDLTest(parser, harness):
parser.parse("""
callback Function = any(any... arguments);
[TreatNonCallableAsNull] callback Function = any(any... arguments);
interface TestTreatNonCallableAsNull1 {
[TreatNonCallableAsNull] attribute Function? onfoo;
attribute Function? onbar;
attribute Function? onfoo;
attribute Function onbar;
};
""")
@@ -54,3 +54,18 @@ def WebIDLTest(parser, harness):
threw = True
harness.ok(threw, "Should have thrown.")
parser = parser.reset()
threw = False
try:
parser.parse("""
[TreatNonCallableAsNull, TreatNonObjectAsNull]
callback Function = any(any... arguments);
""")
results = parser.finish()
except:
threw = True
harness.ok(threw, "Should have thrown.")