mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Tests: Use asyncTest instead of test(async) in PBKDF2 importKey test
This commit is contained in:
committed by
Andrew Kaster
parent
cddbdf5ae9
commit
95303ae4a1
Notes:
sideshowbarker
2024-07-17 18:38:54 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/95303ae4a1 Pull-request: https://github.com/SerenityOS/serenity/pull/23596 Reviewed-by: https://github.com/alimpfard
@@ -4,7 +4,7 @@
|
||||
return [...new Uint8Array(buffer)].map(b => b.toString(16).padStart(2, "0")).join("");
|
||||
}
|
||||
|
||||
test(async () => {
|
||||
asyncTest(async (done) => {
|
||||
let key_material = "password";
|
||||
let enc = new TextEncoder();
|
||||
let key = await window.crypto.subtle.importKey(
|
||||
@@ -27,5 +27,6 @@
|
||||
let digest = await window.crypto.subtle.digest("SHA-256", encoded_message);
|
||||
|
||||
println(`SHA-256 digest: ${bufferToHex(digest)}`);
|
||||
done();
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user