Skip to content

Commit fea122d

Browse files
panvatargos
authored andcommitted
test: enable idlharness WebCryptoAPI WPTs
PR-URL: #45822 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent c37a119 commit fea122d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

test/wpt/status/WebCryptoAPI.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
"skip": "Not relevant in Node.js context"
77
},
88
"idlharness.https.any.js": {
9-
"skip": "Various non-IDL-compliant things"
9+
"fail": {
10+
"expected": [
11+
"Crypto interface: existence and properties of interface object",
12+
"Crypto interface: calling getRandomValues(ArrayBufferView) on crypto with too few arguments must throw TypeError",
13+
"CryptoKey interface: existence and properties of interface object",
14+
"CryptoKey interface: existence and properties of interface prototype object",
15+
"CryptoKey interface: attribute type",
16+
"CryptoKey interface: attribute extractable",
17+
"CryptoKey interface: attribute algorithm",
18+
"CryptoKey interface: attribute usages",
19+
"Window interface: attribute crypto"
20+
]
21+
}
1022
}
1123
}

test/wpt/test-webcrypto.js

+2
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ runner.setInitScript(`
1212
global.location = {};
1313
`);
1414

15+
runner.pretendGlobalThisAs('Window');
16+
1517
runner.runJsTests();

0 commit comments

Comments
 (0)