Changeset 263606 in webkit
- Timestamp:
- Jun 26, 2020 5:13:34 PM (4 years ago)
- Location:
- trunk/LayoutTests/imported/w3c
- Files:
-
- 7 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r263605 r263606 1 2020-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 1 20 2020-06-26 Chris Dumez <cdumez@apple.com> 2 21 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any-expected.txt
r261159 r263606 3 3 PASS Object.prototype.toString 4 4 PASS 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]" 5 PASS Object.prototype.toString applied to a null-prototype instance 6 PASS Object.prototype.toString applied after nulling the prototype 6 7 PASS Object.prototype.toString applied after deleting @@toStringTag 7 8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any.js
r260670 r263606 32 32 // fixed. 33 33 34 test(() => { 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 34 42 test(t => { 35 43 const proto = Object.getPrototypeOf(iteratorProto); … … 40 48 Object.setPrototypeOf(iteratorProto, null); 41 49 42 assert_equals(Object.prototype.toString.call(iteratorProto), "[object Object]");50 assert_equals(Object.prototype.toString.call(iteratorProto), "[object URLSearchParams Iterator]"); 43 51 }, "Object.prototype.toString applied after nulling the prototype"); 44 52 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/class-string-iterator-prototype-object.any.worker-expected.txt
r261159 r263606 3 3 PASS Object.prototype.toString 4 4 PASS 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]" 5 PASS Object.prototype.toString applied to a null-prototype instance 6 PASS Object.prototype.toString applied after nulling the prototype 6 7 PASS Object.prototype.toString applied after deleting @@toStringTag 7 8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/class-string-named-properties-object.window-expected.txt
r260992 r263606 3 3 PASS Object.prototype.toString 4 4 PASS Object.prototype.toString applied after modifying @@toStringTag 5 PASS Object.prototype.toString applied after deleting @@toStringTag6 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/class-string-named-properties-object.window.js
r260670 r263606 29 29 30 30 // 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 17 17 /LayoutTests/imported/w3c/web-platform-tests/WebIDL/META.yml 18 18 /LayoutTests/imported/w3c/web-platform-tests/WebIDL/current-realm.html 19 /LayoutTests/imported/w3c/web-platform-tests/WebIDL/i nterfaces.html19 /LayoutTests/imported/w3c/web-platform-tests/WebIDL/idlharness.html 20 20 /LayoutTests/imported/w3c/web-platform-tests/WebIDL/readme.txt 21 21 /LayoutTests/imported/w3c/web-platform-tests/WebIDL/testable_assertions.txt
Note: See TracChangeset
for help on using the changeset viewer.