Changeset 272000 in webkit


Ignore:
Timestamp:
Jan 27, 2021 9:21:03 PM (3 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] Update test262
https://bugs.webkit.org/show_bug.cgi?id=221078

Reviewed by Alexey Shvayka.

Update test262 to the latest one.

  • test262/latest-changes-summary.txt:
  • test262/test/built-ins/Array/prototype/sort/precise-comparefn-throws.js: Added.

(set logs):
(set const):

  • test262/test/built-ins/Array/prototype/sort/precise-getter-appends-elements.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-getter-decreases-length.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-getter-deletes-predecessor.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-getter-deletes-successor.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-getter-increases-length.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-getter-pops-elements.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-getter-sets-predecessor.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-getter-sets-successor.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-prototype-accessors.js: Added.

(set logs):

  • test262/test/built-ins/Array/prototype/sort/precise-prototype-element.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-setter-appends-elements.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-setter-decreases-length.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-setter-deletes-predecessor.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-setter-deletes-successor.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-setter-increases-length.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-setter-pops-elements.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-setter-sets-predecessor.js: Added.
  • test262/test/built-ins/Array/prototype/sort/precise-setter-sets-successor.js: Added.
  • test262/test/built-ins/Object/seal/object-seal-configurable-attribute-of-own-data-property-of-o-is-set-from-true-to-false-and-other-attributes-of-the-property-are-unaltered.js: Renamed from JSTests/test262/test/built-ins/Object/seal/object-seal-the-configurable-attribute-of-own-data-property-of-o-is-set-from-true-to-false-and-other-attributes-of-the-property-are-unaltered.js.
  • test262/test/intl402/DateTimeFormat/prototype/formatRange/date-same-returns-single-date.js:

(dtf.format):

  • test262/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-same-returns-single-date.js:

(assert.sameValue):

  • test262/test/language/expressions/class/elements/super-access-from-arrow-func-on-field.js: Added.

(C):
(C.staticFunc):

  • test262/test/language/statements/class/elements/super-access-from-arrow-func-on-field.js: Added.

(C.prototype.func):
(C.staticFunc):
(C):

  • test262/test/language/statements/for-of/head-lhs-async-dot.js: Added.
  • test262/test/language/statements/for-of/head-lhs-async-invalid.js: Added.
  • test262/test/language/statements/for/head-init-async-of.js: Added.

(async of):

  • test262/test262-Revision.txt:
Location:
trunk/JSTests
Files:
24 added
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r271993 r272000  
     12021-01-27  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Update test262
     4        https://bugs.webkit.org/show_bug.cgi?id=221078
     5
     6        Reviewed by Alexey Shvayka.
     7
     8        Update test262 to the latest one.
     9
     10        * test262/latest-changes-summary.txt:
     11        * test262/test/built-ins/Array/prototype/sort/precise-comparefn-throws.js: Added.
     12        (set logs):
     13        (set const):
     14        * test262/test/built-ins/Array/prototype/sort/precise-getter-appends-elements.js: Added.
     15        * test262/test/built-ins/Array/prototype/sort/precise-getter-decreases-length.js: Added.
     16        * test262/test/built-ins/Array/prototype/sort/precise-getter-deletes-predecessor.js: Added.
     17        * test262/test/built-ins/Array/prototype/sort/precise-getter-deletes-successor.js: Added.
     18        * test262/test/built-ins/Array/prototype/sort/precise-getter-increases-length.js: Added.
     19        * test262/test/built-ins/Array/prototype/sort/precise-getter-pops-elements.js: Added.
     20        * test262/test/built-ins/Array/prototype/sort/precise-getter-sets-predecessor.js: Added.
     21        * test262/test/built-ins/Array/prototype/sort/precise-getter-sets-successor.js: Added.
     22        * test262/test/built-ins/Array/prototype/sort/precise-prototype-accessors.js: Added.
     23        (set logs):
     24        * test262/test/built-ins/Array/prototype/sort/precise-prototype-element.js: Added.
     25        * test262/test/built-ins/Array/prototype/sort/precise-setter-appends-elements.js: Added.
     26        * test262/test/built-ins/Array/prototype/sort/precise-setter-decreases-length.js: Added.
     27        * test262/test/built-ins/Array/prototype/sort/precise-setter-deletes-predecessor.js: Added.
     28        * test262/test/built-ins/Array/prototype/sort/precise-setter-deletes-successor.js: Added.
     29        * test262/test/built-ins/Array/prototype/sort/precise-setter-increases-length.js: Added.
     30        * test262/test/built-ins/Array/prototype/sort/precise-setter-pops-elements.js: Added.
     31        * test262/test/built-ins/Array/prototype/sort/precise-setter-sets-predecessor.js: Added.
     32        * test262/test/built-ins/Array/prototype/sort/precise-setter-sets-successor.js: Added.
     33        * test262/test/built-ins/Object/seal/object-seal-configurable-attribute-of-own-data-property-of-o-is-set-from-true-to-false-and-other-attributes-of-the-property-are-unaltered.js: Renamed from JSTests/test262/test/built-ins/Object/seal/object-seal-the-configurable-attribute-of-own-data-property-of-o-is-set-from-true-to-false-and-other-attributes-of-the-property-are-unaltered.js.
     34        * test262/test/intl402/DateTimeFormat/prototype/formatRange/date-same-returns-single-date.js:
     35        (dtf.format):
     36        * test262/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-same-returns-single-date.js:
     37        (assert.sameValue):
     38        * test262/test/language/expressions/class/elements/super-access-from-arrow-func-on-field.js: Added.
     39        (C):
     40        (C.staticFunc):
     41        * test262/test/language/statements/class/elements/super-access-from-arrow-func-on-field.js: Added.
     42        (C.prototype.func):
     43        (C.staticFunc):
     44        (C):
     45        * test262/test/language/statements/for-of/head-lhs-async-dot.js: Added.
     46        * test262/test/language/statements/for-of/head-lhs-async-invalid.js: Added.
     47        * test262/test/language/statements/for/head-init-async-of.js: Added.
     48        (async of):
     49        * test262/test262-Revision.txt:
     50
    1512021-01-27  Yusuke Suzuki  <ysuzuki@apple.com>
    252
  • trunk/JSTests/test262/latest-changes-summary.txt

    r271225 r272000  
    1 M harness/testIntl.js
    2 A test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer-during-fromIndex-returns-false-for-zero.js
    3 A test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer-during-fromIndex-returns-true-for-undefined.js
    4 A test/built-ins/TypedArray/prototype/includes/detached-buffer-during-fromIndex-returns-false-for-zero.js
    5 A test/built-ins/TypedArray/prototype/includes/detached-buffer-during-fromIndex-returns-true-for-undefined.js
    6 D test/built-ins/TypedArray/prototype/includes/detached-buffer-tointeger.js
    7 A test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js
    8 A test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js
    9 A test/built-ins/TypedArray/prototype/indexOf/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js
    10 A test/built-ins/TypedArray/prototype/indexOf/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js
    11 A test/built-ins/TypedArray/prototype/join/BigInt/detached-buffer-during-fromIndex-returns-single-comma.js
    12 M test/built-ins/TypedArray/prototype/join/BigInt/detached-buffer.js
    13 A test/built-ins/TypedArray/prototype/join/detached-buffer-during-fromIndex-returns-single-comma.js
    14 M test/built-ins/TypedArray/prototype/join/detached-buffer.js
    15 A test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js
    16 A test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js
    17 A test/built-ins/TypedArray/prototype/lastIndexOf/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js
    18 A test/built-ins/TypedArray/prototype/lastIndexOf/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js
    19 M test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/BigInt/index-prop-desc.js
    20 M test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer.js
    21 A test/intl402/DateTimeFormat/prototype/formatRange/date-same-returns-single-date.js
    22 A test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-same-returns-single-date.js
    23 M test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js
    24 M test/intl402/Intl/getCanonicalLocales/preferred-grandfathered.js
    25 M test/intl402/Intl/getCanonicalLocales/preferred-variant.js
    26 M test/intl402/Locale/extensions-grandfathered.js
    27 M test/intl402/Locale/likely-subtags-grandfathered.js
     1A test/built-ins/Array/prototype/sort/precise-comparefn-throws.js
     2A test/built-ins/Array/prototype/sort/precise-getter-appends-elements.js
     3A test/built-ins/Array/prototype/sort/precise-getter-decreases-length.js
     4A test/built-ins/Array/prototype/sort/precise-getter-deletes-predecessor.js
     5A test/built-ins/Array/prototype/sort/precise-getter-deletes-successor.js
     6A test/built-ins/Array/prototype/sort/precise-getter-increases-length.js
     7A test/built-ins/Array/prototype/sort/precise-getter-pops-elements.js
     8A test/built-ins/Array/prototype/sort/precise-getter-sets-predecessor.js
     9A test/built-ins/Array/prototype/sort/precise-getter-sets-successor.js
     10A test/built-ins/Array/prototype/sort/precise-prototype-accessors.js
     11A test/built-ins/Array/prototype/sort/precise-prototype-element.js
     12A test/built-ins/Array/prototype/sort/precise-setter-appends-elements.js
     13A test/built-ins/Array/prototype/sort/precise-setter-decreases-length.js
     14A test/built-ins/Array/prototype/sort/precise-setter-deletes-predecessor.js
     15A test/built-ins/Array/prototype/sort/precise-setter-deletes-successor.js
     16A test/built-ins/Array/prototype/sort/precise-setter-increases-length.js
     17A test/built-ins/Array/prototype/sort/precise-setter-pops-elements.js
     18A test/built-ins/Array/prototype/sort/precise-setter-sets-predecessor.js
     19A test/built-ins/Array/prototype/sort/precise-setter-sets-successor.js
     20R100 test/built-ins/Object/seal/object-seal-the-configurable-attribute-of-own-data-property-of-o-is-set-from-true-to-false-and-other-attributes-of-the-property-are-unaltered.js test/built-ins/Object/seal/object-seal-configurable-attribute-of-own-data-property-of-o-is-set-from-true-to-false-and-other-attributes-of-the-property-are-unaltered.js
     21M test/intl402/DateTimeFormat/prototype/formatRange/date-same-returns-single-date.js
     22M test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-same-returns-single-date.js
     23A test/language/expressions/class/elements/super-access-from-arrow-func-on-field.js
     24A test/language/statements/class/elements/super-access-from-arrow-func-on-field.js
     25A test/language/statements/for/head-init-async-of.js
     26A test/language/statements/for-of/head-lhs-async-dot.js
     27A test/language/statements/for-of/head-lhs-async-invalid.js
  • trunk/JSTests/test262/test/intl402/DateTimeFormat/prototype/formatRange/date-same-returns-single-date.js

    r271225 r272000  
    11// Copyright 2021 Google Inc. All rights reserved.
     2// Copyright 2021 Apple Inc. All rights reserved.
    23// This code is governed by the BSD license found in the LICENSE file.
    34
     
    2829---*/
    2930
    30 const date = new Date(2019, 7, 10,  1, 2, 3, 234);
     31{
     32  const date = new Date(2019, 7, 10,  1, 2, 3, 234);
    3133
    32 let dtf = new Intl.DateTimeFormat("en", { year: "numeric", month: "short", day: "numeric" });
    33 assert.sameValue(dtf.formatRange(date, date), dtf.format(date), "same output with date options");
     34  let dtf = new Intl.DateTimeFormat("en", { year: "numeric", month: "short", day: "numeric" });
     35  assert.sameValue(dtf.formatRange(date, date), dtf.format(date), "same output with date options");
    3436
    35 dtf = new Intl.DateTimeFormat("en", { minute: "numeric", second: "numeric" });
    36 assert.sameValue(dtf.formatRange(date, date), dtf.format(date), "same output with time options");
     37  dtf = new Intl.DateTimeFormat("en", { minute: "numeric", second: "numeric" });
     38  assert.sameValue(dtf.formatRange(date, date), dtf.format(date), "same output with time options");
    3739
    38 dtf = new Intl.DateTimeFormat("en", { month: "short", day: "numeric", minute: "numeric" });
    39 assert.sameValue(dtf.formatRange(date, date), dtf.format(date), "same output with date-time options");
     40  dtf = new Intl.DateTimeFormat("en", { month: "short", day: "numeric", minute: "numeric" });
     41  assert.sameValue(dtf.formatRange(date, date), dtf.format(date), "same output with date-time options");
    4042
    41 dtf = new Intl.DateTimeFormat("en", { dateStyle: "long", timeStyle: "short" });
    42 assert.sameValue(dtf.formatRange(date, date), dtf.format(date), "same output with dateStyle/timeStyle");
     43  dtf = new Intl.DateTimeFormat("en", { dateStyle: "long", timeStyle: "short" });
     44  assert.sameValue(dtf.formatRange(date, date), dtf.format(date), "same output with dateStyle/timeStyle");
     45}
     46{
     47  const date1 = new Date(2019, 7, 10,  1, 2, 3, 234);
     48  const date2 = new Date(2019, 7, 10,  1, 2, 3, 235);
     49
     50  let dtf = new Intl.DateTimeFormat("en", { year: "numeric", month: "short", day: "numeric" });
     51  assert.sameValue(dtf.formatRange(date1, date2), dtf.format(date1), "same output with date options");
     52
     53  dtf = new Intl.DateTimeFormat("en", { minute: "numeric", second: "numeric" });
     54  assert.sameValue(dtf.formatRange(date1, date2), dtf.format(date1), "same output with time options");
     55
     56  dtf = new Intl.DateTimeFormat("en", { month: "short", day: "numeric", minute: "numeric" });
     57  assert.sameValue(dtf.formatRange(date1, date2), dtf.format(date1), "same output with date-time options");
     58
     59  dtf = new Intl.DateTimeFormat("en", { dateStyle: "long", timeStyle: "short" });
     60  assert.sameValue(dtf.formatRange(date1, date2), dtf.format(date1), "same output with dateStyle/timeStyle");
     61}
  • trunk/JSTests/test262/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-same-returns-single-date.js

    r271225 r272000  
    11// Copyright 2021 Google Inc. All rights reserved.
     2// Copyright 2021 Apple Inc. All rights reserved.
    23// This code is governed by the BSD license found in the LICENSE file.
    34
     
    4344}
    4445
    45 const date = new Date(2019, 7, 10,  1, 2, 3, 234);
     46{
     47  const date = new Date(2019, 7, 10,  1, 2, 3, 234);
    4648
    47 let dtf = new Intl.DateTimeFormat("en", { year: "numeric", month: "short", day: "numeric" });
    48 compare(dtf.formatRange(date, date), dtf.format(date), "same output with date options");
     49  let dtf = new Intl.DateTimeFormat("en", { year: "numeric", month: "short", day: "numeric" });
     50  compare(dtf.formatRangeToParts(date, date), dtf.formatToParts(date), "same output with date options");
    4951
    50 dtf = new Intl.DateTimeFormat("en", { minute: "numeric", second: "numeric" });
    51 compare(dtf.formatRange(date, date), dtf.format(date), "same output with time options");
     52  dtf = new Intl.DateTimeFormat("en", { minute: "numeric", second: "numeric" });
     53  compare(dtf.formatRangeToParts(date, date), dtf.formatToParts(date), "same output with time options");
    5254
    53 dtf = new Intl.DateTimeFormat("en", { month: "short", day: "numeric", minute: "numeric" });
    54 compare(dtf.formatRange(date, date), dtf.format(date), "same output with date-time options");
     55  dtf = new Intl.DateTimeFormat("en", { month: "short", day: "numeric", minute: "numeric" });
     56  compare(dtf.formatRangeToParts(date, date), dtf.formatToParts(date), "same output with date-time options");
    5557
    56 dtf = new Intl.DateTimeFormat("en", { dateStyle: "long", timeStyle: "short" });
    57 compare(dtf.formatRange(date, date), dtf.format(date), "same output with dateStyle/timeStyle");
     58  dtf = new Intl.DateTimeFormat("en", { dateStyle: "long", timeStyle: "short" });
     59  compare(dtf.formatRangeToParts(date, date), dtf.formatToParts(date), "same output with dateStyle/timeStyle");
     60}
     61{
     62  const date1 = new Date(2019, 7, 10,  1, 2, 3, 234);
     63  const date2 = new Date(2019, 7, 10,  1, 2, 3, 235);
     64
     65  let dtf = new Intl.DateTimeFormat("en", { year: "numeric", month: "short", day: "numeric" });
     66  compare(dtf.formatRangeToParts(date1, date2), dtf.formatToParts(date1), "same output with date options");
     67
     68  dtf = new Intl.DateTimeFormat("en", { minute: "numeric", second: "numeric" });
     69  compare(dtf.formatRangeToParts(date1, date2), dtf.formatToParts(date1), "same output with time options");
     70
     71  dtf = new Intl.DateTimeFormat("en", { month: "short", day: "numeric", minute: "numeric" });
     72  compare(dtf.formatRangeToParts(date1, date2), dtf.formatToParts(date1), "same output with date-time options");
     73
     74  dtf = new Intl.DateTimeFormat("en", { dateStyle: "long", timeStyle: "short" });
     75  compare(dtf.formatRangeToParts(date1, date2), dtf.formatToParts(date1), "same output with dateStyle/timeStyle");
     76}
  • trunk/JSTests/test262/test262-Revision.txt

    r271225 r272000  
    11test262 remote url: git@github.com:tc39/test262.git
    2 test262 revision: 6cf3433cf8f44c471a7e4f47e5ba36d32ebb7b69
     2test262 revision: 79060efc7fedf6d9cf92efd14f4c45d06b800662
Note: See TracChangeset for help on using the changeset viewer.