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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-exceptions.html

Issue 2807673002: createPeriodicWave parameters are sequence<float> (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-lengths.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>Test PeriodicWave exceptions</title>
5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script>
7 <script src="../resources/audit-util.js"></script>
8 <script src="../resources/audit.js"></script>
9 </head>
10
11 <body>
12 <script>
13 let audit = Audit.createTaskRunner();
14
15 audit.define('non-finite values', (task, should) => {
hongchan 2017/04/11 17:15:02 Can we have a brief comment what this task does?
Raymond Toy 2017/04/11 20:21:15 Done.
16 // Arbitrary context for testing.
17 let context = new OfflineAudioContext(1, 1, 44100);
18
19 should(() => context.createPeriodicWave([1, Infinity], [1, 1]),
20 'createPeriodicWave([1, Infinity], [1,1])')
21 .throw('TypeError');
22 should(() => context.createPeriodicWave([1, NaN], [1, 1]),
23 'createPeriodicWave([1, NaN], [1,1])')
24 .throw('TypeError');
25 should(() => context.createPeriodicWave([1, 1], [1, Infinity]),
26 'createPeriodicWave([1, 1], [1, Infinity])')
27 .throw('TypeError');
28 should(() => context.createPeriodicWave([1, 1], [1,NaN]),
29 'createPeriodicWave([1, 1], [1, NaN])')
30 .throw('TypeError');
31 task.done();
32 });
33
34 audit.run();
35 </script>
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/PeriodicWave/periodicwave-lengths.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698