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

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

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 if (self.importScripts) 1 if (self.importScripts)
2 importScripts('../../fast/js/resources/js-test-pre.js'); 2 importScripts('../../resources/js-test.js');
3 3
4 description("Tests crypto.randomValues."); 4 description("Tests crypto.randomValues.");
5 5
6 if (!self.ArrayBuffer) 6 if (!self.ArrayBuffer)
7 debug("This test requres ArrayBuffers to run!"); 7 debug("This test requres ArrayBuffers to run!");
8 8
9 shouldBe("'crypto' in self", "true"); 9 shouldBe("'crypto' in self", "true");
10 shouldBe("'getRandomValues' in self.crypto", "true"); 10 shouldBe("'getRandomValues' in self.crypto", "true");
11 11
12 // Although the spec defines Crypto in terms of "RandomSource", it is NOT 12 // Although the spec defines Crypto in terms of "RandomSource", it is NOT
(...skipping 18 matching lines...) Expand all
31 if (reference[i] == sample[i]) 31 if (reference[i] == sample[i])
32 matchingBytes++; 32 matchingBytes++;
33 } 33 }
34 34
35 shouldBe("matchingBytes < 100", "true"); 35 shouldBe("matchingBytes < 100", "true");
36 } catch(ex) { 36 } catch(ex) {
37 debug(ex); 37 debug(ex);
38 } 38 }
39 39
40 finishJSTest(); 40 finishJSTest();
OLDNEW
« no previous file with comments | « LayoutTests/crypto/random-values-types.html ('k') | LayoutTests/crypto/resources/random-values-limits.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698