From 3f1be778619f510ccf22dba56c7e3e23407f80ed Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sun, 11 Dec 2022 22:49:08 +0100 Subject: [PATCH] test: enable idlharness WebCryptoAPI WPTs --- test/wpt/status/WebCryptoAPI.json | 14 +++++++++++++- test/wpt/test-webcrypto.js | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/test/wpt/status/WebCryptoAPI.json b/test/wpt/status/WebCryptoAPI.json index 9f101f6cdd92c9..7e61cb4b5a47d8 100644 --- a/test/wpt/status/WebCryptoAPI.json +++ b/test/wpt/status/WebCryptoAPI.json @@ -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" + ] + } } } diff --git a/test/wpt/test-webcrypto.js b/test/wpt/test-webcrypto.js index f90ffa9ad5316b..fef496a7de47b6 100644 --- a/test/wpt/test-webcrypto.js +++ b/test/wpt/test-webcrypto.js @@ -15,4 +15,6 @@ runner.setInitScript(` global.location = {}; `); +runner.pretendGlobalThisAs('Window'); + runner.runJsTests();