diff --git a/services/crypto/tests/unit/head_helpers.js b/services/crypto/tests/unit/head_helpers.js index 13a4358ba440..5791fbd1a66e 100644 --- a/services/crypto/tests/unit/head_helpers.js +++ b/services/crypto/tests/unit/head_helpers.js @@ -47,7 +47,7 @@ function base64UrlDecode(s) { s += "="; break; // One pad char default: - throw new Error("Illegal base64url string!"); + throw new InputException("Illegal base64url string!"); } // With correct padding restored, apply the standard base64 decoder diff --git a/services/crypto/tests/unit/test_jwcrypto.js b/services/crypto/tests/unit/test_jwcrypto.js index fe91e4bac645..071f3123ba85 100644 --- a/services/crypto/tests/unit/test_jwcrypto.js +++ b/services/crypto/tests/unit/test_jwcrypto.js @@ -62,7 +62,7 @@ function test_rsa() { do_test_pending(); function checkRSA(err, kpo) { do_check_neq(kpo, undefined); - do_print(kpo.serializedPublicKey); + log(kpo.serializedPublicKey); let pk = JSON.parse(kpo.serializedPublicKey); do_check_eq(pk.algorithm, "RS"); /* TODO @@ -92,7 +92,7 @@ function test_dsa() { do_test_pending(); function checkDSA(err, kpo) { do_check_neq(kpo, undefined); - do_print(kpo.serializedPublicKey); + log(kpo.serializedPublicKey); let pk = JSON.parse(kpo.serializedPublicKey); do_check_eq(pk.algorithm, "DS"); /* TODO