Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Side by Side Diff: LayoutTests/crypto/hmac-export-key-expected.txt

Issue 806913006: [WebCrypto] Move LayoutTests from crypto to crypto/subtle (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update path for deserialize legacy tests Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/crypto/hmac-export-key.html ('k') | LayoutTests/crypto/hmac-generate-key.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Test exporting an AES key.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Importing a JWK key...
7 error is: TypeError: Invalid keyFormat argument
8 error is: TypeError: Invalid keyFormat argument
9 error is: TypeError: Invalid keyFormat argument
10 error is: TypeError: Invalid keyFormat argument
11 error is: TypeError: Invalid keyFormat argument
12 Exporting the key as raw data...
13 PASS bytesToHexString(new Uint8Array(exportedData)) is '6a18e49feff7f3b7e09ec89b 7f6deab2f6a18e49feff7f3b7e09ec89b7f6deab'
14 Exporting the key as JWK...
15 PASS exportedJWK.kty is 'oct'
16 PASS exportedJWK.k is 'ahjkn-_387fgnsibf23qsvahjkn-_387fgnsibf23qs'
17 PASS exportedJWK.alg is 'HS256'
18 PASS exportedJWK.ext is true
19 PASS exportedJWK.use is undefined
20 PASS exportedJWK.key_ops is ['sign', 'verify']
21
22 Importing a key that's not extractable...
23
24 Trying to export as raw...
25 error is: InvalidAccessError: key is not extractable
26 PASS Rejected, as expected
27 Trying to export as jwk...
28 error is: InvalidAccessError: key is not extractable
29 PASS Rejected, as expected
30 PASS successfullyParsed is true
31
32 TEST COMPLETE
33
OLDNEW
« no previous file with comments | « LayoutTests/crypto/hmac-export-key.html ('k') | LayoutTests/crypto/hmac-generate-key.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698