[wasm] Update spec tests

Update the spec tests in v8 to the most recent version.

R=rossberg@chromium.org
CC=titzer@chromium.org

Change-Id: Ib4e809c20150502b131a2c0b68fdb2ede1d5f85f
Reviewed-on: https://chromium-review.googlesource.com/552155
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Reviewed-by: Andreas Rossberg <rossberg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46346}
This commit is contained in:
Andreas Haas 2017-06-29 13:56:18 +02:00 committed by Commit Bot
parent 52708b6341
commit 27b0d6a9fc
4 changed files with 17 additions and 3 deletions

2
DEPS
View File

@ -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 = {

View File

@ -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) {

View File

@ -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);

View File

@ -1 +1 @@
6f42a1e559ccf6187f0bddfde47951895d88b327
fd32148c2fedcce0828d9ef94b8081a84ff35fa9