mirror of
https://github.com/servo/servo.git
synced 2025-09-16 18:08:23 +01:00
Update web-platform-tests to revision 28b5323e37274805b1d1416273e3a941c9c7e08e
This commit is contained in:
parent
615a127b99
commit
f7775a289e
439 changed files with 8598 additions and 14793 deletions
|
@ -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"
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue