[wasm] Update spec tests
This CL updates the wasm spec tests. In addition it adds an assertNotEquals function to mjsunit.js, and it fixes the test harness to not call quit() because it causes a dead-lock in combination with async compilation. R=rossberg@chromium.org Change-Id: I50cf737993adb3e2bd27977efe7e20e304b89078 Reviewed-on: https://chromium-review.googlesource.com/558077 Reviewed-by: Andreas Rossberg <rossberg@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#46366}
This commit is contained in:
parent
46a5d96bf7
commit
951ab5c7b1
2
DEPS
2
DEPS
@ -40,7 +40,7 @@ deps = {
|
||||
"v8/tools/clang":
|
||||
Var("chromium_url") + "/chromium/src/tools/clang.git" + "@" + "2023fc2e8eac6c8a6c83786460deb566db1f813d",
|
||||
"v8/test/wasm-js":
|
||||
Var("chromium_url") + "/external/github.com/WebAssembly/spec.git" + "@" + "c4774b47d326e4114f96232f1389a555639d7348",
|
||||
Var("chromium_url") + "/external/github.com/WebAssembly/spec.git" + "@" + "aadd3a340c78e53078a7bb6c17cc30f105c2960c",
|
||||
}
|
||||
|
||||
deps_os = {
|
||||
|
@ -54,6 +54,11 @@ var assertSame;
|
||||
// and the properties of non-Array objects).
|
||||
var assertEquals;
|
||||
|
||||
// Expected and found values are not identical primitive values or functions
|
||||
// or similarly structured objects (checking internal properties
|
||||
// of, e.g., Number and Date objects, the elements of arrays
|
||||
// and the properties of non-Array objects).
|
||||
var assertNotEquals;
|
||||
|
||||
// The difference between expected and found value is within certain tolerance.
|
||||
var assertEqualsDelta;
|
||||
@ -345,6 +350,12 @@ var failWithMessage;
|
||||
}
|
||||
};
|
||||
|
||||
assertNotEquals = function assertNotEquals(expected, found, name_opt) {
|
||||
if (deepEquals(found, expected)) {
|
||||
fail("not equals to " + PrettyPrint(expected), found, name_opt);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
assertEqualsDelta =
|
||||
function assertEqualsDelta(expected, found, delta, name_opt) {
|
||||
|
@ -15,7 +15,9 @@ const known_failures = {
|
||||
"'WebAssembly.Table.prototype.set' method":
|
||||
'https://bugs.chromium.org/p/v8/issues/detail?id=5507',
|
||||
"'WebAssembly.Instance.prototype.exports' accessor property":
|
||||
'https://bugs.chromium.org/p/v8/issues/detail?id=5507'
|
||||
'https://bugs.chromium.org/p/v8/issues/detail?id=5507',
|
||||
"'WebAssembly.Memory.prototype.grow' method":
|
||||
'https://bugs.chromium.org/p/v8/issues/detail?id=6546'
|
||||
};
|
||||
|
||||
let failures = [];
|
||||
@ -61,6 +63,7 @@ function promise_test(func, description) {
|
||||
}
|
||||
|
||||
let assert_equals = assertEquals;
|
||||
let assert_not_equals = assertNotEquals;
|
||||
let assert_true = assertEquals.bind(null, true);
|
||||
let assert_false = assertEquals.bind(null, false);
|
||||
|
||||
@ -104,7 +107,7 @@ assertPromiseResult(last_promise, _ => {
|
||||
"the bug, please remove the test from the known failures list.")
|
||||
}
|
||||
if (unexpected) {
|
||||
quit(1);
|
||||
assertUnreachable("Unexpected outcome");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1 +1 @@
|
||||
6f42a1e559ccf6187f0bddfde47951895d88b327
|
||||
fd32148c2fedcce0828d9ef94b8081a84ff35fa9
|
Loading…
Reference in New Issue
Block a user