mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: update WPT for WebCryptoAPI to 3e3374efde
PR-URL: https://github.com/nodejs/node/pull/56093 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com>
This commit is contained in:
1 parent
398c9414c8
commit
09d5be0cc8
4 files changed
+46
-26
No files matched your search
Vendored
+1
-1
@@ -32,7 +32,7 @@ Last update:
|
||||
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
|
||||
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
|
||||
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi
|
||||
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/76dfa54e5d/WebCryptoAPI
|
||||
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/3e3374efde/WebCryptoAPI
|
||||
- webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/a370aad338/webidl/ecmascript-binding/es-exceptions
|
||||
- webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel
|
||||
- webstorage: https://github.com/web-platform-tests/wpt/tree/9dafa89214/webstorage
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
// META: title=WebCryptoAPI: CryptoKey cached ECMAScript objects
|
||||
|
||||
// https://w3c.github.io/webcrypto/#dom-cryptokey-algorithm
|
||||
// https://github.com/servo/servo/issues/33908
|
||||
|
||||
promise_test(function() {
|
||||
return self.crypto.subtle.generateKey(
|
||||
{
|
||||
name: "AES-CTR",
|
||||
length: 256,
|
||||
},
|
||||
true,
|
||||
["encrypt"],
|
||||
).then(
|
||||
function(key) {
|
||||
let a = key.algorithm;
|
||||
let b = key.algorithm;
|
||||
assert_true(a === b);
|
||||
},
|
||||
function(err) {
|
||||
assert_unreached("generateKey threw an unexpected error: " + err.toString());
|
||||
}
|
||||
);
|
||||
}, "CryptoKey.algorithm getter returns cached object");
|
||||
|
||||
promise_test(function() {
|
||||
return self.crypto.subtle.generateKey(
|
||||
{
|
||||
name: "AES-CTR",
|
||||
length: 256,
|
||||
},
|
||||
true,
|
||||
["encrypt"],
|
||||
).then(
|
||||
function(key) {
|
||||
let a = key.usages;
|
||||
let b = key.usages;
|
||||
assert_true(a === b);
|
||||
},
|
||||
function(err) {
|
||||
assert_unreached("generateKey threw an unexpected error: " + err.toString());
|
||||
}
|
||||
);
|
||||
}, "CryptoKey.usages getter returns cached object");
|
||||
-24
@@ -1,24 +0,0 @@
|
||||
// META: title=WebCryptoAPI: CryptoKey.algorithm getter returns cached object
|
||||
|
||||
// https://w3c.github.io/webcrypto/#dom-cryptokey-algorithm
|
||||
// https://github.com/servo/servo/issues/33908
|
||||
|
||||
promise_test(function() {
|
||||
return self.crypto.subtle.generateKey(
|
||||
{
|
||||
name: "AES-CTR",
|
||||
length: 256,
|
||||
},
|
||||
true,
|
||||
["encrypt"],
|
||||
).then(
|
||||
function(key) {
|
||||
let a = key.algorithm;
|
||||
let b = key.algorithm;
|
||||
assert_true(a === b);
|
||||
},
|
||||
function(err) {
|
||||
assert_unreached("generateKey threw an unexpected error: " + err.toString());
|
||||
}
|
||||
);
|
||||
}, "CryptoKey.algorithm getter returns cached object");
|
||||
Vendored
+1
-1
@@ -88,7 +88,7 @@
|
||||
"path": "wasm/webapi"
|
||||
},
|
||||
"WebCryptoAPI": {
|
||||
"commit": "76dfa54e5df7f8cee7501cc6d598cf647c2b8564",
|
||||
"commit": "3e3374efde7ce73d551ea908d52d0afab046971a",
|
||||
"path": "WebCryptoAPI"
|
||||
},
|
||||
"webidl/ecmascript-binding/es-exceptions": {
|
||||
|
||||
Reference in new issue
Block a user