Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: enable idlharness WebCryptoAPI WPTs
  • Loading branch information
panva committed Dec 11, 2022
commit 3f1be778619f510ccf22dba56c7e3e23407f80ed
14 changes: 13 additions & 1 deletion test/wpt/status/WebCryptoAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
"skip": "Not relevant in Node.js context"
},
"idlharness.https.any.js": {
"skip": "Various non-IDL-compliant things"
"fail": {
"expected": [
"Crypto interface: existence and properties of interface object",
"Crypto interface: calling getRandomValues(ArrayBufferView) on crypto with too few arguments must throw TypeError",
"CryptoKey interface: existence and properties of interface object",
"CryptoKey interface: existence and properties of interface prototype object",
"CryptoKey interface: attribute type",
"CryptoKey interface: attribute extractable",
"CryptoKey interface: attribute algorithm",
"CryptoKey interface: attribute usages",
"Window interface: attribute crypto"
]
}
}
}
2 changes: 2 additions & 0 deletions test/wpt/test-webcrypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ runner.setInitScript(`
global.location = {};
`);

runner.pretendGlobalThisAs('Window');

runner.runJsTests();