summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/wasm/jsapi/idlharness.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/wasm/jsapi/idlharness.any.js')
-rw-r--r--testing/web-platform/tests/wasm/jsapi/idlharness.any.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/wasm/jsapi/idlharness.any.js b/testing/web-platform/tests/wasm/jsapi/idlharness.any.js
new file mode 100644
index 0000000000..98713d4bf6
--- /dev/null
+++ b/testing/web-platform/tests/wasm/jsapi/idlharness.any.js
@@ -0,0 +1,22 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+// META: script=../resources/load_wasm.js
+
+'use strict';
+
+// https://webassembly.github.io/spec/js-api/
+
+idl_test(
+ ['wasm-js-api'],
+ [],
+ async idl_array => {
+ self.mod = await createWasmModule();
+ self.instance = new WebAssembly.Instance(self.mod);
+
+ idl_array.add_objects({
+ Memory: [new WebAssembly.Memory({initial: 1024})],
+ Module: [self.mod],
+ Instance: [self.instance],
+ });
+ }
+);