Skip to content
Next Next commit
crypto: fix WebCryptoAPI WebIDL harness
  • Loading branch information
panva committed Nov 22, 2022
commit ef1eeea2c48b9a8ce7b95892bf6d17cf7343dfbc
13 changes: 12 additions & 1 deletion test/wpt/status/WebCryptoAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
"skip": "Not relevant in Node.js context"
},
"idlharness.https.any.js": {
"skip": "Various non-IDL-compliant things"
"fail": {
"expected": [
"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 @@ -8,6 +8,8 @@ const { WPTRunner } = require('../common/wpt');

const runner = new WPTRunner('WebCryptoAPI');

runner.pretendGlobalThisAs('Window');

// Set Node.js flags required for the tests.
runner.setFlags(['--experimental-global-webcrypto']);

Expand Down