mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision d8b8e0b8efe993a37404d6c6fc75e16fdc16b7d8
This commit is contained in:
parent
abc0f50d20
commit
e07315e6af
221 changed files with 7334 additions and 774 deletions
|
@ -0,0 +1,14 @@
|
|||
// META: global=window,worker
|
||||
// META: script=/wasm/jsapi/wasm-constants.js
|
||||
// META: script=/wasm/jsapi/wasm-module-builder.js
|
||||
// META: script=/wasm/jsapi/bad-imports.js
|
||||
|
||||
test_bad_imports((name, error, build, ...args) => {
|
||||
promise_test(t => {
|
||||
const builder = new WasmModuleBuilder();
|
||||
build(builder);
|
||||
const buffer = builder.toBuffer();
|
||||
const response = new Response(buffer, { "headers": { "Content-Type": "application/wasm" } });
|
||||
return promise_rejects(t, error, WebAssembly.instantiateStreaming(response, ...args));
|
||||
}, name);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue