Skip to content

Commit db5ace9

Browse files
committed
fixup! test: add webidl web-platform tests
1 parent c65ed0e commit db5ace9

File tree

2 files changed

+81
-1
lines changed

2 files changed

+81
-1
lines changed

test/wpt/status/webidl.json

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,71 @@
1-
{}
1+
{
2+
"ecmascript-binding/class-string-named-properties-object.window.js": {
3+
"fail": {
4+
"expected": [
5+
"@@toStringTag exists with the appropriate descriptor",
6+
"Object.prototype.toString"
7+
]
8+
}
9+
},
10+
"ecmascript-binding/global-immutable-prototype.any.js": {
11+
"fail": {
12+
"expected": [
13+
"Setting to a different prototype"
14+
]
15+
}
16+
},
17+
"ecmascript-binding/global-mutable-prototype.any.js": {
18+
"fail": {
19+
"expected": [
20+
"Setting to a different prototype"
21+
]
22+
}
23+
},
24+
"ecmascript-binding/global-object-implicit-this-value.any.js": {
25+
"fail": {
26+
"expected": [
27+
"Global object's getter throws when called on incompatible object",
28+
"Global object's setter throws when called on incompatible object",
29+
"Global object's operation throws when called on incompatible object",
30+
"Global object's getter works when called on null / undefined",
31+
"Global object's setter works when called on null / undefined",
32+
"evaluation in WPTRunner.runJsTests()"
33+
]
34+
}
35+
},
36+
"ecmascript-binding/legacy-factor-function-subclass.window.js": {
37+
"fail": {
38+
"expected": [
39+
"[LegacyFactoryFunction] can be subclassed and correctly handles NewTarget"
40+
]
41+
}
42+
},
43+
"ecmascript-binding/legacy-factory-function-builtin-properties.window.js": {
44+
"fail": {
45+
"expected": [
46+
"Legacy factory function property enumeration order of \"length\", \"name\", and \"prototype\""
47+
]
48+
}
49+
},
50+
"ecmascript-binding/no-regexp-special-casing.any.js": {
51+
"fail": {
52+
"expected": [
53+
"Can be used as an object implementing a callback interface"
54+
]
55+
}
56+
},
57+
"ecmascript-binding/observable-array-no-leak-of-internals.window.js": {
58+
"fail": {
59+
"expected": [
60+
"ObservableArray's internals won't leak"
61+
]
62+
}
63+
},
64+
"ecmascript-binding/observable-array-ownkeys.window.js": {
65+
"fail": {
66+
"expected": [
67+
"ObservableArray's ownKeys trap"
68+
]
69+
}
70+
}
71+
}

test/wpt/test-webidl.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
3+
const common = require('../common');
4+
const { WPTRunner } = require('../common/wpt');
5+
6+
const runner = new WPTRunner('webidl');
7+
8+
runner.pretendGlobalThisAs('Window');
9+
10+
runner.runJsTests();

0 commit comments

Comments
 (0)