Commit 91b79fb7 authored by littledan's avatar littledan Committed by Commit bot

test262 roll

This roll includes the SharedArrayBuffer tests (skipping for now)
but doesn't include the $ renaming.

This is a reland; previously, I reverted because I was confused about why
the rename of $ to $262 didn't break tests; it now seems that the
previous patch left it as an alias. This patch does not do the renaming
yet, as the renaming usage has not landed upstream yet.

R=adamk

Review-Url: https://codereview.chromium.org/2685603003
Cr-Commit-Position: refs/heads/master@{#43118}
parent ded4cae2
......@@ -35,7 +35,7 @@ deps = {
Var("chromium_url") + "/v8/deps/third_party/mozilla-tests.git" + "@" + "f6c578a10ea707b1a8ab0b88943fe5115ce2b9be",
"v8/test/simdjs/data": Var("chromium_url") + "/external/github.com/tc39/ecmascript_simd.git" + "@" + "baf493985cb9ea7cdbd0d68704860a8156de9556",
"v8/test/test262/data":
Var("chromium_url") + "/external/github.com/tc39/test262.git" + "@" + "6a0f1189eb00d38ef9760cb65cbc41c066876cde",
Var("chromium_url") + "/external/github.com/tc39/test262.git" + "@" + "a72ee6d91275aa6524e84a9b7070103411ef2689",
"v8/test/test262/harness":
Var("chromium_url") + "/external/github.com/test262-utils/test262-harness-py.git" + "@" + "0f2acdd882c84cff43b9d60df7574a1901e2cdcd",
"v8/tools/clang":
......
// Copyright 2012 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 6.2.2_b
description: Tests that language tags with "_" are not accepted.
author: Norbert Lindenberg
includes: [testIntl.js]
---*/
var invalidLanguageTags = [
"de_DE",
"DE_de",
"cmn_Hans",
"cmn-hans_cn",
"es_419",
"es-419-u-nu-latn-cu_bob",
"i_klingon",
"cmn-hans-cn-t-ca-u-ca-x_t-u",
"enochian_enochian",
"de-gregory_u-ca-gregory",
"de-tester-Tester", // Case-insensitive duplicate variant subtag
"de-DE-u-kn-true-U-kn-true", // Case-insensitive duplicate singleton subtag
];
testWithIntlConstructors(function (Constructor) {
invalidLanguageTags.forEach(function (tag) {
var error;
try {
// this must throw an exception for an invalid language tag
var obj = new Constructor([tag]);
} catch (e) {
error = e;
}
if (error === undefined) {
$ERROR("Invalid language tag " + tag + " was not rejected.");
} else if (error.name !== "RangeError") {
$ERROR("Invalid language tag " + tag + " was rejected with wrong error " + error.name + ".");
}
});
return true;
});
......@@ -7,9 +7,11 @@
# when they are identical to upstreamed tests. It should be run as part of
# the test262 roll process.
find -f test/test262/local-tests | while read localpath; do
find test/test262/local-tests -type f | while read localpath; do
datapath=${localpath/local-tests/data}
if diff $localpath $datapath >/dev/null ; then
git rm $localpath || exit 1
if [ -e $datapath ] ; then
if diff $localpath $datapath >/dev/null ; then
git rm $localpath || exit 1
fi
fi
done
......@@ -129,6 +129,10 @@
'built-ins/TypedArray/prototype/some/callbackfn-detachbuffer': [FAIL],
'built-ins/TypedArray/prototype/sort/detached-buffer-comparefn': [FAIL],
# DataView functions should also throw on detached buffers
'built-ins/ArrayBuffer/prototype/byteLength/detached-buffer': [FAIL],
'built-ins/DataView/detached-buffer': [FAIL],
'built-ins/DataView/prototype/byteLength/detached-buffer': [FAIL],
'built-ins/DataView/prototype/byteOffset/detached-buffer': [FAIL],
'built-ins/DataView/prototype/getFloat32/detached-buffer': [FAIL],
'built-ins/DataView/prototype/getFloat32/detached-buffer-before-outofrange-byteoffset': [FAIL],
'built-ins/DataView/prototype/getFloat64/detached-buffer': [FAIL],
......@@ -161,12 +165,6 @@
'built-ins/DataView/prototype/setUint32/detached-buffer-before-outofrange-byteoffset': [FAIL],
'built-ins/DataView/prototype/setUint8/detached-buffer': [FAIL],
'built-ins/DataView/prototype/setUint8/detached-buffer-before-outofrange-byteoffset': [FAIL],
'built-ins/DataView/prototype/byteLength/detached-buffer': [FAIL],
'built-ins/DataView/prototype/byteOffset/detached-buffer': [FAIL],
'built-ins/DataView/detached-buffer': [FAIL],
'built-ins/ArrayBuffer/prototype/byteLength/detached-buffer': [FAIL],
'built-ins/DataView/prototype/setFloat64/detached-buffer-after-toindex-byteoffset': [FAIL],
'built-ins/DataView/prototype/setInt16/detached-buffer-after-toindex-byteoffset': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=4648
'built-ins/TypedArray/prototype/every/detached-buffer': [FAIL],
......@@ -329,7 +327,6 @@
'annexB/language/eval-code/direct/func-switch-dflt-eval-func-block-scoping': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=5139
'annexB/built-ins/Date/prototype/setYear/time-clip': [FAIL],
'annexB/built-ins/Date/prototype/setYear/year-number-relative': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=5155
......@@ -444,6 +441,93 @@
'intl402/String/prototype/toLocaleUpperCase/special_casing_Lithuanian': ['--icu-case-mapping'],
'intl402/String/prototype/toLocaleUpperCase/special_casing_Turkish': ['--icu-case-mapping'],
# https://bugs.chromium.org/p/v8/issues/detail?id=5601
'intl402/PluralRules/*': [SKIP],
# https://bugs.chromium.org/p/v8/issues/detail?id=5855
'language/expressions/async-generators/*': [SKIP],
# https://bugs.chromium.org/p/v8/issues/detail?id=5534
'built-ins/Date/UTC/return-value': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=4614
'built-ins/SharedArrayBuffer/*': [SKIP],
'built-ins/Atomics/*': [SKIP],
'built-ins/DataView/buffer-does-not-have-arraybuffer-data-throws-sab': [SKIP],
'built-ins/DataView/buffer-reference-sab': [SKIP],
'built-ins/DataView/byteoffset-is-negative-throws-sab': [SKIP],
'built-ins/DataView/custom-proto-access-throws-sab': [SKIP],
'built-ins/DataView/custom-proto-if-not-object-fallbacks-to-default-prototype-sab': [SKIP],
'built-ins/DataView/custom-proto-if-object-is-used-sab': [SKIP],
'built-ins/DataView/defined-bytelength-and-byteoffset-sab': [SKIP],
'built-ins/DataView/defined-byteoffset-sab': [SKIP],
'built-ins/DataView/defined-byteoffset-undefined-bytelength-sab': [SKIP],
'built-ins/DataView/excessive-bytelength-throws-sab': [SKIP],
'built-ins/DataView/excessive-byteoffset-throws-sab': [SKIP],
'built-ins/DataView/instance-extensibility-sab': [SKIP],
'built-ins/DataView/negative-bytelength-throws-sab': [SKIP],
'built-ins/DataView/negative-byteoffset-throws-sab': [SKIP],
'built-ins/DataView/newtarget-undefined-throws-sab': [SKIP],
'built-ins/DataView/proto-from-ctor-realm-sab': [SKIP],
'built-ins/DataView/prototype/buffer/return-buffer-sab': [SKIP],
'built-ins/DataView/prototype/buffer/this-has-no-dataview-internal-sab': [SKIP],
'built-ins/DataView/prototype/byteLength/return-bytelength-sab': [SKIP],
'built-ins/DataView/prototype/byteLength/this-has-no-dataview-internal-sab': [SKIP],
'built-ins/DataView/prototype/byteOffset/return-byteoffset-sab': [SKIP],
'built-ins/DataView/prototype/byteOffset/this-has-no-dataview-internal-sab': [SKIP],
'built-ins/DataView/prototype/getInt32/index-is-out-of-range-sab': [SKIP],
'built-ins/DataView/prototype/getInt32/negative-byteoffset-throws-sab': [SKIP],
'built-ins/DataView/prototype/getInt32/return-abrupt-from-tonumber-byteoffset-sab': [SKIP],
'built-ins/DataView/prototype/getInt32/return-abrupt-from-tonumber-byteoffset-symbol-sab': [SKIP],
'built-ins/DataView/prototype/getInt32/return-value-clean-arraybuffer-sab': [SKIP],
'built-ins/DataView/prototype/getInt32/return-values-custom-offset-sab': [SKIP],
'built-ins/DataView/prototype/getInt32/return-values-sab': [SKIP],
'built-ins/DataView/prototype/getInt32/this-has-no-dataview-internal-sab': [SKIP],
'built-ins/DataView/prototype/getInt32/to-boolean-littleendian-sab': [SKIP],
'built-ins/DataView/prototype/getInt32/toindex-byteoffset-sab': [SKIP],
'built-ins/DataView/return-abrupt-tonumber-bytelength-sab': [SKIP],
'built-ins/DataView/return-abrupt-tonumber-bytelength-symbol-sab': [SKIP],
'built-ins/DataView/return-abrupt-tonumber-byteoffset-sab': [SKIP],
'built-ins/DataView/return-abrupt-tonumber-byteoffset-symbol-sab': [SKIP],
'built-ins/DataView/return-instance-sab': [SKIP],
'built-ins/DataView/toindex-bytelength-sab': [SKIP],
'built-ins/DataView/toindex-byteoffset-sab': [SKIP],
'built-ins/TypedArray/prototype/set/typedarray-arg-set-values-diff-buffer-other-type-conversions-sab': [SKIP],
'built-ins/TypedArray/prototype/set/typedarray-arg-set-values-diff-buffer-other-type-sab': [SKIP],
'built-ins/TypedArray/prototype/set/typedarray-arg-set-values-diff-buffer-same-type-sab': [SKIP],
'built-ins/TypedArray/prototype/set/typedarray-arg-set-values-same-buffer-same-type-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-byteoffset-is-negative-throws-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-byteoffset-is-negative-zero-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-byteoffset-is-symbol-throws-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-byteoffset-throws-from-modulo-element-size-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-byteoffset-to-number-throws-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-custom-proto-access-throws-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-defined-length-and-offset-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-defined-length-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-defined-negative-length-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-defined-offset-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-excessive-length-throws-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-excessive-offset-throws-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-invoked-with-undefined-newtarget-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-is-referenced-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-length-access-throws-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-length-is-symbol-throws-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-new-instance-extensibility-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-proto-from-ctor-realm-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-returns-new-instance-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-toindex-bytelength-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-toindex-byteoffset-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-use-custom-proto-if-object-sab': [SKIP],
'built-ins/TypedArrays/buffer-arg-use-default-proto-if-custom-proto-is-not-object-sab': [SKIP],
'built-ins/TypedArrays/internals/Get/indexed-value-sab': [SKIP],
'built-ins/ArrayBuffer/prototype/byteLength/this-is-sharedarraybuffer': [SKIP],
'built-ins/ArrayBuffer/prototype/slice/this-is-sharedarraybuffer': [SKIP],
'built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer': [SKIP],
# https://bugs.chromium.org/p/v8/issues/detail?id=5897
'built-ins/SharedArrayBuffer/prototype/slice/*': [SKIP],
######################## NEEDS INVESTIGATION ###########################
# These test failures are specific to the intl402 suite and need investigation
......@@ -508,9 +592,6 @@
'built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-custom-species-proto-from-ctor-realm': [FAIL],
'built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-custom-proto-from-ctor-realm': [FAIL],
# https://github.com/tc39/test262/commit/c779cba592fcb39051fd1d467e472ea71aa2b1d6#commitcomment-20276482
'language/statements/class/strict-mode/arguments-caller': [FAIL],
# Date tests that fail in CE(S)T timezone.
# https://bugs.chromium.org/p/v8/issues/detail?id=5449
'built-ins/Date/prototype/setFullYear/new-value-time-clip': [PASS, FAIL],
......
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