Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-basic.html |
| diff --git a/third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-basic.html b/third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-basic.html |
| index 69d00748a9e5ba97a6abbdd88f223170359adb8a..37286cdbd3abed489ed15857cbc8f7f98a7096c9 100644 |
| --- a/third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-basic.html |
| +++ b/third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-basic.html |
| @@ -44,16 +44,24 @@ function runTest() { |
| else |
| testFailed("ratio attribute has incorrect default value."); |
| - if (compressor.attack.value - 0.003 < 3e-8) |
| + if (Math.abs(compressor.attack.value - 0.003) < 2.61e-11) |
|
hongchan
2016/04/20 16:25:02
Please add comments what this number means.
Raymond Toy
2016/04/20 16:28:55
Which number?
hongchan
2016/04/21 17:32:33
Why did you change 3e-8 to 2.61e-11?
|
| testPassed("attack attribute has correct default value."); |
| else |
| testFailed("attack attribute has incorrect default value."); |
| - if (compressor.release.value - 0.25 < 3e-8) |
| + if (compressor.release.value === 0.25) |
| testPassed("release attribute has correct default value."); |
| else |
| testFailed("release attribute has incorrect default value."); |
| + if (typeof compressor.reduction === "number") { |
| + testPassed("reduction attribute is a number.") |
| + if (compressor.reduction == 0) |
| + testPassed("reduction attribute has correct default value.") |
| + } else { |
| + testFailed("reduction attribute is an " + compressor.reduction.constructor.name + " not a number."); |
| + } |
| + |
| } catch(e) { |
| testFailed("Exception thrown when accessing DynamicsCompressorNode attributes."); |
| } |