Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html |
| diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html |
| index a406e05e8c86de641286f1c27250764e73f9e07a..5b33ac5909e30d7fe072edd967d066cac0d7c768 100644 |
| --- a/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html |
| +++ b/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html |
| @@ -106,7 +106,13 @@ |
| 'gain.gain.setValueCurveAtTime(curve, 1, ' + duration + ')') |
| .throw(); |
| } |
| - |
| + // Non-finite curve values should signal an error |
|
hongchan
2017/04/11 17:12:24
super nit: a period at the end.
Raymond Toy
2017/04/11 20:11:00
Done.
|
| + for (curve of [[1, 2, Infinity, 3], [1, NaN, 2, 3]]) { |
| + should( |
| + () => gain.gain.setValueCurveAtTime(curve, 1, 1), |
| + 'gain.gain.setValueCurveAtTime([' + curve + '], 1, 1)') |
| + .throw(); |
| + } |
| task.done(); |
| }); |