Skip to content

Commit 619bfcb

Browse files
committed
Resync web-platform-tests/WebIDL tests from upstream
https://bugs.webkit.org/show_bug.cgi?id=219120 Reviewed by Alex Christensen. Resync web-platform-tests/WebIDL tests from upstream dd35c2b. * web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any-expected.txt: * web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.js: (test): * web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.worker-expected.txt: * web-platform-tests/WebIDL/ecmascript-binding/legacy-callback-interface-object.html: * web-platform-tests/WebIDL/ecmascript-binding/w3c-import.log: * web-platform-tests/WebIDL/idlharness.any-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/WebIDL/idlharness-expected.txt. * web-platform-tests/WebIDL/idlharness.any.html: Added. * web-platform-tests/WebIDL/idlharness.any.js: Added. * web-platform-tests/WebIDL/idlharness.any.worker-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/WebIDL/idlharness-expected.txt. * web-platform-tests/WebIDL/idlharness.any.worker.html: Added. * web-platform-tests/WebIDL/idlharness.html: Removed. * web-platform-tests/WebIDL/w3c-import.log: Canonical link: https://commits.webkit.org/231744@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 916d5c1 commit 619bfcb

13 files changed

+208
-40
lines changed

LayoutTests/imported/w3c/ChangeLog

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
2020-11-18 Chris Dumez <cdumez@apple.com>
2+
3+
Resync web-platform-tests/WebIDL tests from upstream
4+
https://bugs.webkit.org/show_bug.cgi?id=219120
5+
6+
Reviewed by Alex Christensen.
7+
8+
Resync web-platform-tests/WebIDL tests from upstream dd35c2b21b76772123f.
9+
10+
* web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any-expected.txt:
11+
* web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.js:
12+
(test):
13+
* web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.worker-expected.txt:
14+
* web-platform-tests/WebIDL/ecmascript-binding/legacy-callback-interface-object.html:
15+
* web-platform-tests/WebIDL/ecmascript-binding/w3c-import.log:
16+
* web-platform-tests/WebIDL/idlharness.any-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/WebIDL/idlharness-expected.txt.
17+
* web-platform-tests/WebIDL/idlharness.any.html: Added.
18+
* web-platform-tests/WebIDL/idlharness.any.js: Added.
19+
* web-platform-tests/WebIDL/idlharness.any.worker-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/WebIDL/idlharness-expected.txt.
20+
* web-platform-tests/WebIDL/idlharness.any.worker.html: Added.
21+
* web-platform-tests/WebIDL/idlharness.html: Removed.
22+
* web-platform-tests/WebIDL/w3c-import.log:
23+
124
2020-11-18 Chris Dumez <cdumez@apple.com>
225

326
Unreviewed, drop manual test in web-platform-tests/notifications.

LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any-expected.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ PASS Cannot construct without new
33
PASS inherits from Error: prototype-side
44
PASS does not inherit from Error: class-side
55
PASS message property descriptor
6-
PASS message getter performs brand checks (i.e. is not [LenientThis]
6+
PASS message getter performs brand checks (i.e. is not [LegacyLenientThis])
77
PASS name property descriptor
8-
PASS name getter performs brand checks (i.e. is not [LenientThis]
8+
PASS name getter performs brand checks (i.e. is not [LegacyLenientThis])
99
PASS code property descriptor
10-
PASS code getter performs brand checks (i.e. is not [LenientThis]
10+
PASS code getter performs brand checks (i.e. is not [LegacyLenientThis])
1111
PASS code property is not affected by shadowing the name property
1212
PASS Object.prototype.toString behavior is like other interfaces
1313
PASS Inherits its toString() from Error.prototype

LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test(() => {
2727
const getter = Object.getOwnPropertyDescriptor(DOMException.prototype, "message").get;
2828

2929
assert_throws_js(TypeError, () => getter.apply({}));
30-
}, "message getter performs brand checks (i.e. is not [LenientThis]");
30+
}, "message getter performs brand checks (i.e. is not [LegacyLenientThis])");
3131

3232
test(() => {
3333
const e = new DOMException("message", "name");
@@ -44,7 +44,7 @@ test(() => {
4444
const getter = Object.getOwnPropertyDescriptor(DOMException.prototype, "name").get;
4545

4646
assert_throws_js(TypeError, () => getter.apply({}));
47-
}, "name getter performs brand checks (i.e. is not [LenientThis]");
47+
}, "name getter performs brand checks (i.e. is not [LegacyLenientThis])");
4848

4949
test(() => {
5050
const e = new DOMException("message", "name");
@@ -61,7 +61,7 @@ test(() => {
6161
const getter = Object.getOwnPropertyDescriptor(DOMException.prototype, "code").get;
6262

6363
assert_throws_js(TypeError, () => getter.apply({}));
64-
}, "code getter performs brand checks (i.e. is not [LenientThis]");
64+
}, "code getter performs brand checks (i.e. is not [LegacyLenientThis])");
6565

6666
test(() => {
6767
const e = new DOMException("message", "InvalidCharacterError");

LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.worker-expected.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ PASS Cannot construct without new
33
PASS inherits from Error: prototype-side
44
PASS does not inherit from Error: class-side
55
PASS message property descriptor
6-
PASS message getter performs brand checks (i.e. is not [LenientThis]
6+
PASS message getter performs brand checks (i.e. is not [LegacyLenientThis])
77
PASS name property descriptor
8-
PASS name getter performs brand checks (i.e. is not [LenientThis]
8+
PASS name getter performs brand checks (i.e. is not [LegacyLenientThis])
99
PASS code property descriptor
10-
PASS code getter performs brand checks (i.e. is not [LenientThis]
10+
PASS code getter performs brand checks (i.e. is not [LegacyLenientThis])
1111
PASS code property is not affected by shadowing the name property
1212
PASS Object.prototype.toString behavior is like other interfaces
1313
PASS Inherits its toString() from Error.prototype

LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/legacy-callback-interface-object.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<script>
1010
test(() => {
11-
assert_true(typeof NodeFilter === "function");
11+
assert_equals(typeof NodeFilter, "function");
1212
}, "Must be a function according to typeof");
1313

1414
test(() => {

LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/w3c-import.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ List of files:
2222
/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/global-immutable-prototype.any.js
2323
/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/has-instance.html
2424
/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/interface-object.html
25+
/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/interface-prototype-constructor-set-receiver.html
2526
/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/interface-prototype-object.html
2627
/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/iterator-invalidation-foreach.html
2728
/LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/iterator-prototype-object.html

LayoutTests/imported/w3c/web-platform-tests/WebIDL/idlharness-expected.txt renamed to LayoutTests/imported/w3c/web-platform-tests/WebIDL/idlharness.any-expected.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
PASS Test driver
2+
PASS idl_test setup
3+
PASS idl_test validation
34
PASS DOMException interface: existence and properties of interface object
45
PASS DOMException interface object length
56
PASS DOMException interface object name
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- This file is required for WebKit test infrastructure to run the templated test -->
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// META: script=/resources/WebIDLParser.js
2+
// META: script=/resources/idlharness.js
3+
4+
"use strict";
5+
6+
idl_test(
7+
['WebIDL'],
8+
[],
9+
idl_array => {
10+
idl_array.add_objects({
11+
DOMException: ['new DOMException()',
12+
'new DOMException("my message")',
13+
'new DOMException("my message", "myName")']
14+
});
15+
}
16+
);

0 commit comments

Comments
 (0)