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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-fft-sizing.html

Issue 2708953003: Move task.describe descriptions to audit.define (Closed)
Patch Set: Address review comments. Created 3 years, 9 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
OLDNEW
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
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 description: "Test that re-sizing the FFT arrays does not fail."
35 }, function (task, should) {
34 doTest(-1, true, should); 36 doTest(-1, true, should);
35 doTest(0, true, should); 37 doTest(0, true, should);
36 doTest(1, true, should); 38 doTest(1, true, should);
37 for (let i = 2; i <= 0x20000; i *= 2) { 39 for (let i = 2; i <= 0x20000; i *= 2) {
38 if (i >= 32 && i <= 32768) 40 if (i >= 32 && i <= 32768)
39 doTest(i, false, should); 41 doTest(i, false, should);
40 else 42 else
41 doTest(i, true, should); 43 doTest(i, true, should);
42 doTest(i + 1, true, should); 44 doTest(i + 1, true, should);
43 } 45 }
44 46
45 task.done(); 47 task.done();
46 }); 48 });
47 49
48 audit.run(); 50 audit.run();
49 </script> 51 </script>
50 52
51 </body> 53 </body>
52 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698