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

Side by Side Diff: LayoutTests/crypto/importKey.html

Issue 20582003: WebCrypto: Fix a crash when passing invalid ArrayBufferView to importKey. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/crypto/importKey-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../fast/js/resources/js-test-pre.js"></script> 4 <script src="../fast/js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 9
10 <script> 10 <script>
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Invalid format. 198 // Invalid format.
199 shouldThrow("crypto.subtle.importKey('invalid format', data, algorithm, extractable, keyUsages)"); 199 shouldThrow("crypto.subtle.importKey('invalid format', data, algorithm, extractable, keyUsages)");
200 200
201 // Invalid key usage. 201 // Invalid key usage.
202 shouldThrow("crypto.subtle.importKey(keyFormat, data, algorithm, extract able, ['SIGN'])"); 202 shouldThrow("crypto.subtle.importKey(keyFormat, data, algorithm, extract able, ['SIGN'])");
203 203
204 // Undefined key usage. 204 // Undefined key usage.
205 // FIXME: http://crbug.com/262383 205 // FIXME: http://crbug.com/262383
206 //shouldThrow("crypto.subtle.importKey(keyFormat, data, algorithm, extra ctable, undefined)"); 206 //shouldThrow("crypto.subtle.importKey(keyFormat, data, algorithm, extra ctable, undefined)");
207 207
208 // Invalid data
209 shouldThrow("crypto.subtle.importKey(keyFormat, [], algorithm, extractab le, keyUsages)");
210 shouldThrow("crypto.subtle.importKey(keyFormat, null, algorithm, extract able, keyUsages)");
abarth-chromium 2013/07/25 23:31:30 null is a perfectly fine ArrayBufferView. What ha
211
208 startNextTest(); 212 startNextTest();
209 }, 213 },
210 214
211 ]; 215 ];
212 216
213 // Begin! 217 // Begin!
214 startNextTest(); 218 startNextTest();
215 </script> 219 </script>
216 220
217 <script src="../fast/js/resources/js-test-post.js"></script> 221 <script src="../fast/js/resources/js-test-post.js"></script>
218 </body> 222 </body>
219 </html> 223 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/crypto/importKey-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698