Changeset 263606 in webkit


Ignore:
Timestamp:
Jun 26, 2020 5:13:34 PM (4 years ago)
Author:
Chris Dumez
Message:

Resync web-platform-tests/WebIDL from upstream
https://bugs.webkit.org/show_bug.cgi?id=213539

Reviewed by Sam Weinig.

Resync web-platform-tests/WebIDL from upstream 1001bb6b2d6b9.

  • web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any-expected.txt:
  • web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any.js:

(test):

  • web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any.worker-expected.txt:
  • web-platform-tests/WebIDL/ecmascript-binding/class-string-named-properties-object.window-expected.txt:
  • web-platform-tests/WebIDL/ecmascript-binding/class-string-named-properties-object.window.js:
  • web-platform-tests/WebIDL/idlharness-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/WebIDL/interfaces-expected.txt.
  • web-platform-tests/WebIDL/idlharness.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/WebIDL/interfaces.html.
  • web-platform-tests/WebIDL/w3c-import.log:
Location:
trunk/LayoutTests/imported/w3c
Files:
7 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r263605 r263606  
     12020-06-26  Chris Dumez  <cdumez@apple.com>
     2
     3        Resync web-platform-tests/WebIDL from upstream
     4        https://bugs.webkit.org/show_bug.cgi?id=213539
     5
     6        Reviewed by Sam Weinig.
     7
     8        Resync web-platform-tests/WebIDL from upstream 1001bb6b2d6b9.
     9
     10        * web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any-expected.txt:
     11        * web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any.js:
     12        (test):
     13        * web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any.worker-expected.txt:
     14        * web-platform-tests/WebIDL/ecmascript-binding/class-string-named-properties-object.window-expected.txt:
     15        * web-platform-tests/WebIDL/ecmascript-binding/class-string-named-properties-object.window.js:
     16        * web-platform-tests/WebIDL/idlharness-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/WebIDL/interfaces-expected.txt.
     17        * web-platform-tests/WebIDL/idlharness.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/WebIDL/interfaces.html.
     18        * web-platform-tests/WebIDL/w3c-import.log:
     19
    1202020-06-26  Chris Dumez  <cdumez@apple.com>
    221
  • trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any-expected.txt

    r261159 r263606  
    33PASS Object.prototype.toString
    44PASS Object.prototype.toString applied after modifying @@toStringTag
    5 FAIL Object.prototype.toString applied after nulling the prototype assert_equals: expected "[object Object]" but got "[object URLSearchParams Iterator]"
     5PASS Object.prototype.toString applied to a null-prototype instance
     6PASS Object.prototype.toString applied after nulling the prototype
    67PASS Object.prototype.toString applied after deleting @@toStringTag
    78
  • trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any.js

    r260670 r263606  
    3232// fixed.
    3333
     34test(() => {
     35  const iterator = (new URLSearchParams()).keys();
     36  assert_equals(Object.prototype.toString.call(iterator), "[object URLSearchParams Iterator]");
     37
     38  Object.setPrototypeOf(iterator, null);
     39  assert_equals(Object.prototype.toString.call(iterator), "[object Object]");
     40}, "Object.prototype.toString applied to a null-prototype instance");
     41
    3442test(t => {
    3543  const proto = Object.getPrototypeOf(iteratorProto);
     
    4048  Object.setPrototypeOf(iteratorProto, null);
    4149
    42   assert_equals(Object.prototype.toString.call(iteratorProto), "[object Object]");
     50  assert_equals(Object.prototype.toString.call(iteratorProto), "[object URLSearchParams Iterator]");
    4351}, "Object.prototype.toString applied after nulling the prototype");
    4452
  • trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any.worker-expected.txt

    r261159 r263606  
    33PASS Object.prototype.toString
    44PASS Object.prototype.toString applied after modifying @@toStringTag
    5 FAIL Object.prototype.toString applied after nulling the prototype assert_equals: expected "[object Object]" but got "[object URLSearchParams Iterator]"
     5PASS Object.prototype.toString applied to a null-prototype instance
     6PASS Object.prototype.toString applied after nulling the prototype
    67PASS Object.prototype.toString applied after deleting @@toStringTag
    78
  • trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/class-string-named-properties-object.window-expected.txt

    r260992 r263606  
    33PASS Object.prototype.toString
    44PASS Object.prototype.toString applied after modifying @@toStringTag
    5 PASS Object.prototype.toString applied after deleting @@toStringTag
    65
  • trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/class-string-named-properties-object.window.js

    r260670 r263606  
    2929
    3030// Chrome had a bug (https://bugs.chromium.org/p/chromium/issues/detail?id=793406) where if there
    31 // was no @@toStringTag, it would fall back to a magic class string. This tests that the bug is
    32 // fixed.
    33 
    34 // Note: we cannot null out the prototype of the named properties object per
    35 // https://heycam.github.io/webidl/#named-properties-object-setprototypeof so we don't have a test that does that.
    36 
    37 // This test must be last.
    38 test(() => {
    39   delete namedPropertiesObject[Symbol.toStringTag];
    40 
    41   assert_equals(Object.prototype.toString.call(namedPropertiesObject), "[object EventTarget]", "prototype");
    42 }, "Object.prototype.toString applied after deleting @@toStringTag");
     31// was no @@toStringTag, it would fall back to a magic class string. Tests for this are present in
     32// the sibling class-string*.any.js tests. However, the named properties object always fails calls
     33// to [[DefineOwnProperty]] or [[SetPrototypeOf]] per the Web IDL spec, so there is no way to
     34// trigger the buggy behavior for it.
  • trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/w3c-import.log

    r253783 r263606  
    1717/LayoutTests/imported/w3c/web-platform-tests/WebIDL/META.yml
    1818/LayoutTests/imported/w3c/web-platform-tests/WebIDL/current-realm.html
    19 /LayoutTests/imported/w3c/web-platform-tests/WebIDL/interfaces.html
     19/LayoutTests/imported/w3c/web-platform-tests/WebIDL/idlharness.html
    2020/LayoutTests/imported/w3c/web-platform-tests/WebIDL/readme.txt
    2121/LayoutTests/imported/w3c/web-platform-tests/WebIDL/testable_assertions.txt
Note: See TracChangeset for help on using the changeset viewer.