mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 2b7dace05fc1869398ee24f84fda4c0e4c0455ae
This commit is contained in:
parent
b23125d590
commit
6c901de216
844 changed files with 19802 additions and 3093 deletions
|
@ -62,6 +62,10 @@ test(() => {
|
|||
assert_equals(propdesc.value, this.WebAssembly);
|
||||
}, "WebAssembly: property descriptor");
|
||||
|
||||
test(() => {
|
||||
assert_throws(new TypeError(), () => WebAssembly());
|
||||
}, "WebAssembly: calling");
|
||||
|
||||
test(() => {
|
||||
assert_throws(new TypeError(), () => new WebAssembly());
|
||||
}, "WebAssembly: constructing");
|
||||
|
@ -87,6 +91,15 @@ for (const name of interfaces) {
|
|||
assert_equals(propdesc.value, WebAssembly[name]);
|
||||
}, `WebAssembly.${name}: property descriptor`);
|
||||
|
||||
test(() => {
|
||||
const interface_object = WebAssembly[name];
|
||||
const propdesc = Object.getOwnPropertyDescriptor(interface_object, "prototype");
|
||||
assert_equals(typeof propdesc, "object");
|
||||
assert_false(propdesc.writable, "writable");
|
||||
assert_false(propdesc.enumerable, "enumerable");
|
||||
assert_false(propdesc.configurable, "configurable");
|
||||
}, `WebAssembly.${name}: prototype`);
|
||||
|
||||
test(() => {
|
||||
const interface_object = WebAssembly[name];
|
||||
const interface_prototype_object = interface_object.prototype;
|
||||
|
@ -96,7 +109,7 @@ for (const name of interfaces) {
|
|||
assert_false(propdesc.enumerable, "enumerable");
|
||||
assert_true(propdesc.configurable, "configurable");
|
||||
assert_equals(propdesc.value, interface_object);
|
||||
}, `WebAssembly.${name}: prototype`);
|
||||
}, `WebAssembly.${name}: prototype.constructor`);
|
||||
}
|
||||
|
||||
test_operations(WebAssembly, "WebAssembly", [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue