summaryrefslogtreecommitdiff
path: root/test/control_flow.post.js
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2023-12-11 17:40:49 -0800
committerGitHub <noreply@github.com>2023-12-11 17:40:49 -0800
commitcba8e18a70f76364e6b6ecdbbe4931c11dc58c08 (patch)
tree990dc6b965c01b61c814057aa273f7cebabedc49 /test/control_flow.post.js
parent9e07c8266edcc77624748032ae1186953f6242df (diff)
downloadbinaryen-cba8e18a70f76364e6b6ecdbbe4931c11dc58c08.tar.gz
binaryen-cba8e18a70f76364e6b6ecdbbe4931c11dc58c08.tar.bz2
binaryen-cba8e18a70f76364e6b6ecdbbe4931c11dc58c08.zip
[test] Remove / move *.js tests from test/ (#6163)
`wasm2js.asserts.js` and `wasm2js.traps.js` seem to be used in wasm2js asserts test: https://github.com/WebAssembly/binaryen/blob/1d615b38dd4152494d2f4d3520c8b1d917624a30/scripts/test/wasm2js.py#L28 https://github.com/WebAssembly/binaryen/blob/1d615b38dd4152494d2f4d3520c8b1d917624a30/scripts/test/wasm2js.py#L126-L127 But other `*.js` tests in `test/` don't seem to be used anywhere. Please let me know if they are actually being used. This moves `wasm2js.asserts.js` and `wasm2js.traps.js`, which are only used in wasmjs tests, to `test/wasm2js/`, and deletes all other `*.js` tests in `test/`.
Diffstat (limited to 'test/control_flow.post.js')
-rw-r--r--test/control_flow.post.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/control_flow.post.js b/test/control_flow.post.js
deleted file mode 100644
index 823580e7b..000000000
--- a/test/control_flow.post.js
+++ /dev/null
@@ -1,26 +0,0 @@
-
-function test(name) {
- Module.print(name);
- function doTest(x) {
- Module.print(' ' + [x] + ' ==> ' + Module['_check_' + name](x));
- }
- doTest(1);
- doTest(2);
- doTest(3);
- doTest(4);
- doTest(11);
- doTest(90);
-}
-
-test('if');
-test('loop');
-test('loop_break');
-test('loop_continue');
-test('do_loop');
-test('do_once');
-test('while_forever');
-test('switch');
-test('switch_nodefault');
-test('switch_rdefault');
-test('switch_fallthrough');
-