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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/audioparam-exceptional-values.html

Issue 2426893003: Allow timeConstant=0 for setTargetAtTime (Closed)
Patch Set: Created 4 years, 2 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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/compatibility.js"></script> 4 <script src="resources/compatibility.js"></script>
5 <script src="../resources/js-test.js"></script> 5 <script src="../resources/js-test.js"></script>
6 </head> 6 </head>
7 7
8 <body> 8 <body>
9 <script> 9 <script>
10 description("Test exceptional arguments for AudioParam timeline events"); 10 description("Test exceptional arguments for AudioParam timeline events");
11 11
12 var context; 12 var context;
13 var gain; 13 var gain;
14 14
15 // For these values, AudioParam methods should throw an error because they are invalid; only 15 // For these values, AudioParam methods should throw an error because they are invalid; only
16 // finite values are allowed. 16 // finite values are allowed.
17 var targetValues = [Infinity, -Infinity, NaN]; 17 var targetValues = [Infinity, -Infinity, NaN];
18 18
19 // For these time values, AudioParam methods should throw an error because they are 19 // For these time values, AudioParam methods should throw an error because they are
20 // invalid. Only finite non-negative values are allowed for any time or ti me-like parameter. 20 // invalid. Only finite non-negative values are allowed for any time or ti me-like parameter.
21 var timeValues = [-1, Infinity, -Infinity, NaN]; 21 var timeValues = [-1, Infinity, -Infinity, NaN];
22 22
23 // For these duration values, AudioParam methods should throw an error bec ause they are 23 // For these duration values, AudioParam methods should throw an error bec ause they are
24 // invalid. Only finite values are allowed for any duration parameter. 24 // invalid. Only finite values are allowed for any duration parameter.
25 var durationValues = [-1, Infinity, -Infinity, NaN, 0]; 25 var durationValues = [-1, Infinity, -Infinity, NaN, 0];
26 26
27 // For these timeConstant values for setTargetAtTime an error must be thro wn because they are 27 // For these timeConstant values for setTargetAtTime an error must be thro wn because they are
28 // invalid. 28 // invalid.
29 var timeConstantValues = [-1, 0, Infinity, -Infinity, NaN]; 29 var timeConstantValues = [-1, Infinity, -Infinity, NaN];
30 30
31 // Just an array for use by setValueCurveAtTime. The length and contents o f the array are not 31 // Just an array for use by setValueCurveAtTime. The length and contents o f the array are not
32 // important. 32 // important.
33 var curve = new Float32Array(10); 33 var curve = new Float32Array(10);
34 34
35 function runTest() { 35 function runTest() {
36 if (window.testRunner) { 36 if (window.testRunner) {
37 testRunner.dumpAsText(); 37 testRunner.dumpAsText();
38 testRunner.waitUntilDone(); 38 testRunner.waitUntilDone();
39 } 39 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 finishJSTest(); 74 finishJSTest();
75 } 75 }
76 76
77 runTest(); 77 runTest();
78 successfullyParsed = true; 78 successfullyParsed = true;
79 </script> 79 </script>
80 </body> 80 </body>
81 </html> 81 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698