Update web-platform-tests to revision 28b5323e37274805b1d1416273e3a941c9c7e08e

This commit is contained in:
WPT Sync Bot 2018-06-18 21:08:01 -04:00
parent 615a127b99
commit f7775a289e
439 changed files with 8598 additions and 14793 deletions

View file

@ -167,7 +167,7 @@
"status_string": "FAIL"
},
{
"message": "assert_true: {\"type\":\"return-type\",\"sequence\":false,\"generic\":null,\"nullable\":false,\"union\":false,\"idlType\":\"DOMException\"} is not an appropriate return value for the toJSON operation of N expected true got false",
"message": "assert_true: {\"type\":\"return-type\",\"generic\":null,\"nullable\":false,\"union\":false,\"idlType\":\"DOMException\",\"extAttrs\":[]} is not an appropriate return value for the toJSON operation of N expected true got false",
"name": "Test toJSON operation of N",
"properties": {},
"status_string": "FAIL"

View file

@ -24,7 +24,12 @@
assert_equals(typeof WebIDL2.parse, "function");
}, 'WebIDL2 namespace should have a parse method');
test(function() {
assert_throws(new TypeError(), function() { WebIDL2.parse("I'm a syntax error"); });
try {
WebIDL2.parse("I'm a syntax error");
throw new Error("Web IDL didn't throw");
} catch (e) {
assert_true(e.constructor.name === "WebIDLParseError");
}
}, 'WebIDL2 parse method should bail on incorrect WebIDL');
test(function() {
assert_equals(typeof WebIDL2.parse("interface Foo {};"), "object");