Test exporting an RSA key.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".



Importing a JWK key...
PASS crypto.webkitSubtle.exportKey(null, key) threw exception TypeError: Unknown key format.
PASS crypto.webkitSubtle.exportKey(undefined, key) threw exception TypeError: Unknown key format.
PASS crypto.webkitSubtle.exportKey({}, key) threw exception TypeError: Unknown key format.
PASS crypto.webkitSubtle.exportKey("", key) threw exception TypeError: Unknown key format.
PASS crypto.webkitSubtle.exportKey("foobar", key) threw exception TypeError: Unknown key format.

Exporting the key as JWK...
PASS exportedJWK.kty is 'RSA'
PASS exportedJWK.n is publicKeyJSON.n
PASS exportedJWK.e is publicKeyJSON.e
PASS exportedJWK.alg is 'RS256'
PASS exportedJWK.ext is true
PASS exportedJWK.use is undefined
PASS exportedJWK.key_ops is ['sign', 'verify']
PASS successfullyParsed is true

TEST COMPLETE

