Commit 27b0d6a9 authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[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: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Reviewed-by: 's avatarAndreas Rossberg <rossberg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46346}
parent 52708b63
...@@ -40,7 +40,7 @@ deps = { ...@@ -40,7 +40,7 @@ deps = {
"v8/tools/clang": "v8/tools/clang":
Var("chromium_url") + "/chromium/src/tools/clang.git" + "@" + "2023fc2e8eac6c8a6c83786460deb566db1f813d", Var("chromium_url") + "/chromium/src/tools/clang.git" + "@" + "2023fc2e8eac6c8a6c83786460deb566db1f813d",
"v8/test/wasm-js": "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 = { deps_os = {
......
...@@ -54,6 +54,11 @@ var assertSame; ...@@ -54,6 +54,11 @@ var assertSame;
// and the properties of non-Array objects). // and the properties of non-Array objects).
var assertEquals; 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. // The difference between expected and found value is within certain tolerance.
var assertEqualsDelta; var assertEqualsDelta;
...@@ -345,6 +350,12 @@ var failWithMessage; ...@@ -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 = assertEqualsDelta =
function assertEqualsDelta(expected, found, delta, name_opt) { function assertEqualsDelta(expected, found, delta, name_opt) {
......
...@@ -15,7 +15,9 @@ const known_failures = { ...@@ -15,7 +15,9 @@ const known_failures = {
"'WebAssembly.Table.prototype.set' method": "'WebAssembly.Table.prototype.set' method":
'https://bugs.chromium.org/p/v8/issues/detail?id=5507', 'https://bugs.chromium.org/p/v8/issues/detail?id=5507',
"'WebAssembly.Instance.prototype.exports' accessor property": "'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 = []; let failures = [];
...@@ -61,6 +63,7 @@ function promise_test(func, description) { ...@@ -61,6 +63,7 @@ function promise_test(func, description) {
} }
let assert_equals = assertEquals; let assert_equals = assertEquals;
let assert_not_equals = assertNotEquals;
let assert_true = assertEquals.bind(null, true); let assert_true = assertEquals.bind(null, true);
let assert_false = assertEquals.bind(null, false); let assert_false = assertEquals.bind(null, false);
......
6f42a1e559ccf6187f0bddfde47951895d88b327 fd32148c2fedcce0828d9ef94b8081a84ff35fa9
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment