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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/OfflineAudioContext/offlineaudiocontext-constructor.html

Issue 2708953003: Move task.describe descriptions to audit.define (Closed)
Patch Set: Address review comments. Created 3 years, 10 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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/testharness.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script> 5 <script src="../../resources/testharnessreport.js"></script>
6 <script src="../resources/audit.js"></script> 6 <script src="../resources/audit.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <script> 9 <script>
10 let audit = Audit.createTaskRunner(); 10 let audit = Audit.createTaskRunner();
11 11
12 audit.define('test', (task, should) => { 12 audit.define({
13 task.describe('OfflineAudioContext constructor'); 13 label: 'test',
14 description: 'OfflineAudioContext constructor'
15 }, (task, should) => {
14 let context; 16 let context;
15 // Make sure we don't crash when giving 0 as number of frames. 17 // Make sure we don't crash when giving 0 as number of frames.
16 should( 18 should(
17 () => new OfflineAudioContext(1, 0, 44100), 19 () => new OfflineAudioContext(1, 0, 44100),
18 'new OfflineAudioContext(1, 0, 44100)') 20 'new OfflineAudioContext(1, 0, 44100)')
19 .throw(); 21 .throw();
20 // Make sure we don't throw exceptions for supported ranges of sample rates 22 // Make sure we don't throw exceptions for supported ranges of sample rates
21 // for an OfflineAudioContext. 23 // for an OfflineAudioContext.
22 should( 24 should(
23 () => context = new OfflineAudioContext(2, 512, 2999), 25 () => context = new OfflineAudioContext(2, 512, 2999),
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 'context.destination.channelInterpretation') 107 'context.destination.channelInterpretation')
106 .beEqualTo('speakers'); 108 .beEqualTo('speakers');
107 109
108 task.done(); 110 task.done();
109 }); 111 });
110 112
111 audit.run(); 113 audit.run();
112 </script> 114 </script>
113 </body> 115 </body>
114 </html> 116 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698