| Index: third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js b/third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js
|
| index 608d16a19e62260132a05dc4623e0649e968cc59..ebc337b26a69090d76881ea8dcab5b49c67dd971 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js
|
| @@ -870,9 +870,9 @@ var Should = (function () {
|
| maxAbsError = diff;
|
| }
|
| // Keep track of the location of the max relative error, ignoring cases where the
|
| - // relative error is ininfinity (because the expected value = 0).
|
| + // relative error is NaN.
|
| var relError = diff / Math.abs(expected[i]);
|
| - if (isFinite(relError) && relError > maxRelError) {
|
| + if (!isNaN(relError) && relError > maxRelError) {
|
| maxRelErrorIndex = i;
|
| maxRelError = relError;
|
| }
|
|
|