Diff
Modified: trunk/JSTests/ChangeLog (265070 => 265071)
--- trunk/JSTests/ChangeLog 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/ChangeLog 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,5 +1,33 @@
2020-07-29 Yusuke Suzuki <[email protected]>
+ [JSC] Upgrade test262
+ https://bugs.webkit.org/show_bug.cgi?id=214949
+
+ Reviewed by Ross Kirsling.
+
+ related-year-zh.js tests are updated and passing.
+
+ * test262/config.yaml:
+ * test262/latest-changes-summary.txt:
+ * test262/test/intl402/DateTimeFormat/prototype/format/related-year-zh.js:
+ * test262/test/intl402/DateTimeFormat/prototype/formatToParts/related-year-zh.js:
+ (actual.forEach):
+ (verifyFormatParts): Deleted.
+ (verifyFormatParts.df.formatToParts): Deleted.
+ * test262/test/intl402/Segmenter/prototype/segment/segment-grapheme-iterable.js:
+ (const.v.of.seg.segment):
+ * test262/test/intl402/Segmenter/prototype/segment/segment-grapheme.js: Removed.
+ * test262/test/intl402/Segmenter/prototype/segment/segment-sentence-iterable.js:
+ (const.v.of.seg.segment):
+ * test262/test/intl402/Segmenter/prototype/segment/segment-sentence.js: Removed.
+ * test262/test/intl402/Segmenter/prototype/segment/segment-tostring.js:
+ * test262/test/intl402/Segmenter/prototype/segment/segment-word-iterable.js:
+ (const.v.of.seg.segment):
+ * test262/test/intl402/Segmenter/prototype/segment/segment-word.js: Removed.
+ * test262/test262-Revision.txt:
+
+2020-07-29 Yusuke Suzuki <[email protected]>
+
[JSC] Skip too heavy tests for Debug build
https://bugs.webkit.org/show_bug.cgi?id=214939
Modified: trunk/JSTests/test262/config.yaml (265070 => 265071)
--- trunk/JSTests/test262/config.yaml 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/config.yaml 2020-07-30 00:14:31 UTC (rev 265071)
@@ -121,11 +121,6 @@
- test/built-ins/TypedArrayConstructors/prototype/toString/bigint-inherited.js
- test/built-ins/TypedArrayConstructors/prototype/values/bigint-inherited.js
- # These tests require macOS system ICU to actually update its CLDR data >:(
- # https://bugs.webkit.org/show_bug.cgi?id=209783
- - test/intl402/DateTimeFormat/prototype/format/related-year-zh.js
- - test/intl402/DateTimeFormat/prototype/formatToParts/related-year-zh.js
-
# requires ICU 65 (https://unicode-org.atlassian.net/browse/ICU-20654)
- test/intl402/RelativeTimeFormat/prototype/format/en-us-numeric-auto.js
- test/intl402/RelativeTimeFormat/prototype/formatToParts/en-us-numeric-auto.js
Modified: trunk/JSTests/test262/latest-changes-summary.txt (265070 => 265071)
--- trunk/JSTests/test262/latest-changes-summary.txt 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/latest-changes-summary.txt 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,19 +1,9 @@
-M harness/async-gc.js
-A test/annexB/language/expressions/typeof/emulates-undefined.js
-M test/built-ins/FinalizationRegistry/gc-has-one-chance-to-call-cleanupCallback.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/callback-not-callable-throws.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/cleanup-prevented-with-reference.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/cleanup-prevented-with-unregister.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/custom-this.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/holdings-multiple-values.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/length.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/name.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/prop-desc.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/reentrancy.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/return-undefined-with-gc.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/return-undefined.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/this-does-not-have-internal-cells-throws.js
-M test/built-ins/FinalizationRegistry/prototype/cleanupSome/this-not-object-throws.js
-M test/built-ins/FinalizationRegistry/prototype/unregister/unregister-cleaned-up-cell.js
-M test/built-ins/WeakRef/prototype/deref/gc-cleanup-not-prevented-with-wr-deref.js
-M test/intl402/DisplayNames/length.js
\ No newline at end of file
+M test/intl402/DateTimeFormat/prototype/format/related-year-zh.js
+M test/intl402/DateTimeFormat/prototype/formatToParts/related-year-zh.js
+M test/intl402/Segmenter/prototype/segment/segment-grapheme-iterable.js
+D test/intl402/Segmenter/prototype/segment/segment-grapheme.js
+M test/intl402/Segmenter/prototype/segment/segment-sentence-iterable.js
+D test/intl402/Segmenter/prototype/segment/segment-sentence.js
+M test/intl402/Segmenter/prototype/segment/segment-tostring.js
+M test/intl402/Segmenter/prototype/segment/segment-word-iterable.js
+D test/intl402/Segmenter/prototype/segment/segment-word.js
\ No newline at end of file
Modified: trunk/JSTests/test262/test/intl402/DateTimeFormat/prototype/format/related-year-zh.js (265070 => 265071)
--- trunk/JSTests/test262/test/intl402/DateTimeFormat/prototype/format/related-year-zh.js 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/test/intl402/DateTimeFormat/prototype/format/related-year-zh.js 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,4 +1,5 @@
// Copyright 2019 Google Inc, Igalia S.L. All rights reserved.
+// Copyright 2020 Apple Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
@@ -11,4 +12,6 @@
const df = new Intl.DateTimeFormat("zh-u-ca-chinese", {year: "numeric"});
const date = new Date(2019, 5, 1);
-assert.sameValue(df.format(date), "2019己亥年");
+const formatted = df.format(date);
+const expected = ["2019己亥年", "己亥年"];
+assert(expected.includes(formatted));
Modified: trunk/JSTests/test262/test/intl402/DateTimeFormat/prototype/formatToParts/related-year-zh.js (265070 => 265071)
--- trunk/JSTests/test262/test/intl402/DateTimeFormat/prototype/formatToParts/related-year-zh.js 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/test/intl402/DateTimeFormat/prototype/formatToParts/related-year-zh.js 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,4 +1,5 @@
// Copyright 2019 Google Inc, Igalia S.L. All rights reserved.
+// Copyright 2020 Apple Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
@@ -9,21 +10,24 @@
locale: [zh-u-ca-chinese]
---*/
-function verifyFormatParts(actual, expected, message) {
- assert.sameValue(Array.isArray(expected), true, `${message}: expected is Array`);
- assert.sameValue(Array.isArray(actual), true, `${message}: actual is Array`);
- assert.sameValue(actual.length, expected.length, `${message}: length`);
-
- for (let i = 0; i < actual.length; ++i) {
- assert.sameValue(actual[i].type, expected[i].type, `${message}: parts[${i}].type`);
- assert.sameValue(actual[i].value, expected[i].value, `${message}: parts[${i}].value`);
- }
-}
-
const df = new Intl.DateTimeFormat("zh-u-ca-chinese", {year: "numeric"});
const date = new Date(2019, 5, 1);
-verifyFormatParts(df.formatToParts(date), [
+const actual = df.formatToParts(date);
+
+const expected = [
{type: "relatedYear", value: "2019"},
{type: "yearName", value: "己亥"},
{type: "literal", value: "年"},
-]);
+];
+
+assert.sameValue(Array.isArray(actual), true, 'actual is Array');
+
+if (actual.length <= 2) {
+ expected.shift(); // removes the relatedYear
+}
+
+actual.forEach(({ type, value }, i) => {
+ const { type: eType, value: eValue } = expected[i];
+ assert.sameValue(type, eType, `actual[${i}].type should be ${eType}`);
+ assert.sameValue(value, eValue, `actual[${i}].value should be ${eValue}`);
+});
Modified: trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-grapheme-iterable.js (265070 => 265071)
--- trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-grapheme-iterable.js 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-grapheme-iterable.js 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,4 +1,5 @@
// Copyright 2018 the V8 project authors. All rights reserved.
+// Copyright 2020 Apple Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
@@ -31,8 +32,11 @@
let segments = [];
for (const v of seg.segment(text)) {
assert.sameValue(undefined, v.isWordLike);
+ assert.sameValue(false, v.hasOwnProperty("isWordLike"));
assert.sameValue("string", typeof v.segment);
assert(v.segment.length > 0);
+ assert.sameValue("string", typeof v.input);
+ assert.sameValue(text, v.input);
segments.push(v.segment);
}
assert.sameValue(text, segments.join(''));
Deleted: trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-grapheme.js (265070 => 265071)
--- trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-grapheme.js 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-grapheme.js 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,34 +0,0 @@
-// Copyright 2018 the V8 project authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/*---
-esid: sec-Intl.Segmenter.prototype.segment
-description: Verifies the behavior for the "segment" function of the Segmenter prototype object.
-info: |
- Intl.Segmenter.prototype.segment( string )
-features: [Intl.Segmenter]
----*/
-
-const seg = new Intl.Segmenter([], {granularity: "grapheme"})
-for (const text of [
- "Hello world!", // English
- " Hello world! ", // English with space before/after
- " Hello world? Foo bar!", // English
- "Jedovatou mambu objevila žena v zahrádkářské kolonii.", // Czech
- "Việt Nam: Nhất thể hóa sẽ khác Trung Quốc?", // Vietnamese
- "Σοβαρές ενστάσεις Κομισιόν για τον προϋπολογισμό της Ιταλίας", // Greek
- "Решение Индии о покупке российских С-400 расценили как вызов США", // Russian
- "הרופא שהציל נשים והנערה ששועבדה ע", // Hebrew,
- "ترامب للملك سلمان: أنا جاد للغاية.. عليك دفع المزيد", // Arabic
- "भारत की एस 400 मिसाइल के मुकाबले पाक की थाड, जानें कौन कितना ताकतवर", // Hindi
- "ரெட் அலர்ட் எச்சரிக்கை; புதுச்சேரியில் நாளை அரசு விடுமுறை!", // Tamil
- "'ఉత్తర్వులు అందే వరకు ఓటర్ల తుది జాబితాను వెబ్సైట్లో పెట్టవద్దు'", // Telugu
- "台北》抹黑柯P失敗?朱學恒酸:姚文智氣pupu嗆大老闆", // Chinese
- "วัดไทรตีระฆังเบาลงช่วงเข้าพรรษา เจ้าอาวาสเผยคนร้องเรียนรับผลกรรมแล้ว", // Thai
- "九州北部の一部が暴風域に入りました(日直予報士 2018年10月06日) - 日本気象協会 tenki.jp", // Japanese
- "법원 “다스 지분 처분권·수익권 모두 MB가 보유”", // Korean
- ]) {
- const iter = seg.segment(text);
- assert.sameValue(undefined, iter.breakType);
- assert.sameValue(0, iter.index);
-}
Modified: trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-sentence-iterable.js (265070 => 265071)
--- trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-sentence-iterable.js 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-sentence-iterable.js 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,4 +1,5 @@
// Copyright 2018 the V8 project authors. All rights reserved.
+// Copyright 2020 Apple Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
@@ -31,8 +32,11 @@
let segments = [];
for (const v of seg.segment(text)) {
assert.sameValue(undefined, v.isWordLike);
+ assert.sameValue(false, v.hasOwnProperty("isWordLike"));
assert.sameValue("string", typeof v.segment);
assert(v.segment.length > 0);
+ assert.sameValue("string", typeof v.input);
+ assert.sameValue(text, v.input);
segments.push(v.segment);
}
assert.sameValue(text, segments.join(''));
Deleted: trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-sentence.js (265070 => 265071)
--- trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-sentence.js 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-sentence.js 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,34 +0,0 @@
-// Copyright 2018 the V8 project authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/*---
-esid: sec-Intl.Segmenter.prototype.segment
-description: Verifies the behavior for the "segment" function of the Segmenter prototype object.
-info: |
- Intl.Segmenter.prototype.segment( string )
-features: [Intl.Segmenter]
----*/
-
-const seg = new Intl.Segmenter([], {granularity: "sentence"})
-for (const text of [
- "Hello world!", // English
- " Hello world! ", // English with space before/after
- " Hello world? Foo bar!", // English
- "Jedovatou mambu objevila žena v zahrádkářské kolonii.", // Czech
- "Việt Nam: Nhất thể hóa sẽ khác Trung Quốc?", // Vietnamese
- "Σοβαρές ενστάσεις Κομισιόν για τον προϋπολογισμό της Ιταλίας", // Greek
- "Решение Индии о покупке российских С-400 расценили как вызов США", // Russian
- "הרופא שהציל נשים והנערה ששועבדה ע", // Hebrew,
- "ترامب للملك سلمان: أنا جاد للغاية.. عليك دفع المزيد", // Arabic
- "भारत की एस 400 मिसाइल के मुकाबले पाक की थाड, जानें कौन कितना ताकतवर", // Hindi
- "ரெட் அலர்ட் எச்சரிக்கை; புதுச்சேரியில் நாளை அரசு விடுமுறை!", // Tamil
- "'ఉత్తర్వులు అందే వరకు ఓటర్ల తుది జాబితాను వెబ్సైట్లో పెట్టవద్దు'", // Telugu
- "台北》抹黑柯P失敗?朱學恒酸:姚文智氣pupu嗆大老闆", // Chinese
- "วัดไทรตีระฆังเบาลงช่วงเข้าพรรษา เจ้าอาวาสเผยคนร้องเรียนรับผลกรรมแล้ว", // Thai
- "九州北部の一部が暴風域に入りました(日直予報士 2018年10月06日) - 日本気象協会 tenki.jp", // Japanese
- "법원 “다스 지분 처분권·수익권 모두 MB가 보유”", // Korean
- ]) {
- const iter = seg.segment(text);
- assert.sameValue(undefined, iter.breakType);
- assert.sameValue(0, iter.index);
-}
Modified: trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-tostring.js (265070 => 265071)
--- trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-tostring.js 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-tostring.js 2020-07-30 00:14:31 UTC (rev 265071)
@@ -26,7 +26,8 @@
const segmenter = new Intl.Segmenter("en", { "granularity": "word" });
for (const [args, expected] of tests) {
const segments = segmenter.segment(...args);
- assert.sameValue(segments.string, expected, `Expected segment "${expected}", found "${segments.segment}" for arguments ${args}`);
+ const actual = [...segments][0].segment;
+ assert.sameValue(actual, expected, `Expected segment "${expected}", found "${actual}" for arguments ${args}`);
}
const symbol = Symbol();
Modified: trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-word-iterable.js (265070 => 265071)
--- trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-word-iterable.js 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-word-iterable.js 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,4 +1,5 @@
// Copyright 2018 the V8 project authors. All rights reserved.
+// Copyright 2020 Apple Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
@@ -31,8 +32,11 @@
let segments = [];
for (const v of seg.segment(text)) {
assert.sameValue("boolean", typeof v.isWordLike);
+ assert.sameValue(true, v.hasOwnProperty("isWordLike"));
assert.sameValue("string", typeof v.segment);
assert(v.segment.length > 0);
+ assert.sameValue("string", typeof v.input);
+ assert.sameValue(text, v.input);
segments.push(v.segment);
}
assert.sameValue(text, segments.join(''));
Deleted: trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-word.js (265070 => 265071)
--- trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-word.js 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/test/intl402/Segmenter/prototype/segment/segment-word.js 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,34 +0,0 @@
-// Copyright 2018 the V8 project authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/*---
-esid: sec-Intl.Segmenter.prototype.segment
-description: Verifies the behavior for the "segment" function of the Segmenter prototype object.
-info: |
- Intl.Segmenter.prototype.segment( string )
-features: [Intl.Segmenter]
----*/
-
-const seg = new Intl.Segmenter([], {granularity: "word"})
-for (const text of [
- "Hello world!", // English
- " Hello world! ", // English with space before/after
- " Hello world? Foo bar!", // English
- "Jedovatou mambu objevila žena v zahrádkářské kolonii.", // Czech
- "Việt Nam: Nhất thể hóa sẽ khác Trung Quốc?", // Vietnamese
- "Σοβαρές ενστάσεις Κομισιόν για τον προϋπολογισμό της Ιταλίας", // Greek
- "Решение Индии о покупке российских С-400 расценили как вызов США", // Russian
- "הרופא שהציל נשים והנערה ששועבדה ע", // Hebrew,
- "ترامب للملك سلمان: أنا جاد للغاية.. عليك دفع المزيد", // Arabic
- "भारत की एस 400 मिसाइल के मुकाबले पाक की थाड, जानें कौन कितना ताकतवर", // Hindi
- "ரெட் அலர்ட் எச்சரிக்கை; புதுச்சேரியில் நாளை அரசு விடுமுறை!", // Tamil
- "'ఉత్తర్వులు అందే వరకు ఓటర్ల తుది జాబితాను వెబ్సైట్లో పెట్టవద్దు'", // Telugu
- "台北》抹黑柯P失敗?朱學恒酸:姚文智氣pupu嗆大老闆", // Chinese
- "วัดไทรตีระฆังเบาลงช่วงเข้าพรรษา เจ้าอาวาสเผยคนร้องเรียนรับผลกรรมแล้ว", // Thai
- "九州北部の一部が暴風域に入りました(日直予報士 2018年10月06日) - 日本気象協会 tenki.jp", // Japanese
- "법원 “다스 지분 처분권·수익권 모두 MB가 보유”", // Korean
- ]) {
- const iter = seg.segment(text);
- assert.sameValue(undefined, iter.breakType);
- assert.sameValue(0, iter.index);
-}
Modified: trunk/JSTests/test262/test262-Revision.txt (265070 => 265071)
--- trunk/JSTests/test262/test262-Revision.txt 2020-07-29 23:57:03 UTC (rev 265070)
+++ trunk/JSTests/test262/test262-Revision.txt 2020-07-30 00:14:31 UTC (rev 265071)
@@ -1,2 +1,2 @@
test262 remote url: [email protected]:tc39/test262.git
-test262 revision: c619375b46fb5a58b93d02a3d525f444c074e98b
+test262 revision: f6a9847c730041c2d1bd2acc03caeb92370e6bd9