Skip to content

Commit da30e96

Browse files
committed
Remove automated coverage of deprecated asm.js builds
1 parent 3d4311b commit da30e96

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

‎test/builds.js‎

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function noAssetLoading() {
99
throw new Error("The inline build must not load a companion asset");
1010
}
1111

12-
async function testBrowserBuild(file, deprecated) {
12+
async function testBrowserBuild(file) {
1313
const warnings = [];
1414
const messages = [];
1515
const worker = file.startsWith("worker.");
@@ -51,14 +51,7 @@ async function testBrowserBuild(file, deprecated) {
5151
await context.self.onmessage({ data: { id: 3, action: "close" } });
5252
}
5353

54-
if (deprecated) {
55-
assert.equal(warnings.length, 1, "Warn once when initializing a deprecated build");
56-
assert.match(warnings[0], /asm\.js build is deprecated/);
57-
assert.match(warnings[0], /sql-wasm-inline\.js/);
58-
assert.match(warnings[0], /https:\/\/github\.com\/sql-js\/sql\.js\/issues\/635/);
59-
} else {
60-
assert.equal(warnings.length, 0, "WebAssembly builds do not warn");
61-
}
54+
assert.equal(warnings.length, 0, "WebAssembly builds do not warn");
6255
console.log("OK browser distribution " + file);
6356
}
6457

@@ -91,14 +84,8 @@ async function main() {
9184
const file = "sql-wasm-inline" + suffix + ".js";
9285
assert.equal(fs.existsSync(path.join(__dirname, "../dist", "sql-wasm-inline" + suffix + ".wasm")), false);
9386
testIsolatedNodeBuild(file);
94-
await testBrowserBuild(file, false);
95-
await testBrowserBuild("worker." + file, false);
96-
}
97-
for (const file of [
98-
"sql-asm.js", "sql-asm-debug.js", "sql-asm-memory-growth.js",
99-
"worker.sql-asm.js", "worker.sql-asm-debug.js"
100-
]) {
101-
await testBrowserBuild(file, true);
87+
await testBrowserBuild(file);
88+
await testBrowserBuild("worker." + file);
10289
}
10390
}
10491

0 commit comments

Comments
 (0)