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

Side by Side Diff: LayoutTests/crypto/resources/random-values-limits.js

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
OLDNEW
(Empty)
1 if (self.importScripts)
2 importScripts('../../resources/js-test.js');
3
4 description("Tests the limits of crypto.randomValues.");
5
6 if (!self.ArrayBuffer)
7 debug("This test requres ArrayBuffers to run!");
8
9 shouldBe("'crypto' in self", "true");
10 shouldBe("'getRandomValues' in self.crypto", "true");
11
12 try {
13 var almostTooLargeArray = new Uint8Array(65536);
14 var tooLargeArray = new Uint8Array(65537);
15
16 shouldNotThrow("crypto.getRandomValues(almostTooLargeArray)");
17 shouldThrow("crypto.getRandomValues(tooLargeArray)");
18 } catch(ex) {
19 debug(ex);
20 }
21
22 finishJSTest();
OLDNEW
« no previous file with comments | « LayoutTests/crypto/resources/random-values-concurrent.js ('k') | LayoutTests/crypto/resources/random-values-types.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698