| 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..eb54db6171f4d48500e849f7fcbe032e428c5da9 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 (compressor.attack.value === Math.fround(0.003))
|
| 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.");
|
| }
|
|
|