OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <script src="../../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
6 <script src="../../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
7 <script src="../resources/audit-util.js"></script> | 7 <script src="../resources/audit-util.js"></script> |
8 <script src="../resources/audit.js"></script> | 8 <script src="../resources/audit.js"></script> |
9 </head> | 9 </head> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... | |
22 | 22 |
23 if (illegal) { | 23 if (illegal) { |
24 should(tester, message) | 24 should(tester, message) |
25 .throw("IndexSizeError"); | 25 .throw("IndexSizeError"); |
26 } else { | 26 } else { |
27 should(tester, message) | 27 should(tester, message) |
28 .notThrow(); | 28 .notThrow(); |
29 } | 29 } |
30 } | 30 } |
31 | 31 |
32 audit.define("FFT size test", function (task, should) { | 32 audit.define({ |
33 task.describe("Test that re-sizing the FFT arrays does not fail."); | 33 label: "FFT size test", |
34 doTest(-1, true, should); | 34 description: "Test that re-sizing the FFT arrays does not fail." |
35 }, function (task, should) { doTest(-1, true, should); | |
hongchan
2017/02/22 17:59:13
Same issue.
Raymond Toy
2017/02/22 19:34:09
Done.
| |
35 doTest(0, true, should); | 36 doTest(0, true, should); |
36 doTest(1, true, should); | 37 doTest(1, true, should); |
37 for (let i = 2; i <= 0x20000; i *= 2) { | 38 for (let i = 2; i <= 0x20000; i *= 2) { |
38 if (i >= 32 && i <= 32768) | 39 if (i >= 32 && i <= 32768) |
39 doTest(i, false, should); | 40 doTest(i, false, should); |
40 else | 41 else |
41 doTest(i, true, should); | 42 doTest(i, true, should); |
42 doTest(i + 1, true, should); | 43 doTest(i + 1, true, should); |
43 } | 44 } |
44 | 45 |
45 task.done(); | 46 task.done(); |
46 }); | 47 }); |
47 | 48 |
48 audit.run(); | 49 audit.run(); |
49 </script> | 50 </script> |
50 | 51 |
51 </body> | 52 </body> |
52 </html> | 53 </html> |
OLD | NEW |