Chromium Code Reviews| 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 ba04d973852e7e1c32217e2e87284c789babd454..98ea10ef6091b378ddc47bb35f4cdd4edeffd25e 100644 |
| --- a/third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js |
| +++ b/third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js |
| @@ -509,10 +509,18 @@ var Should = (function () { |
| this._checkNaN(value, 'EXPECTED'); |
| - if (this.target === value) |
| - this._testPassed('is equal to ' + value); |
| - else |
| - this._testFailed('was ' + this.target + ' instead of ' + value); |
| + var outputValue = value; |
| + if (type === "string") |
| + outputValue = "'" + outputValue + "'"; |
| + if (this.target === value) { |
| + var outputValue = (type === 'string') ? "'" + value + "'" : value; |
| + this._testPassed('is equal to ' + outputValue); |
| + } else { |
| + var targetValue = this.target; |
| + if (typeof this.target === 'string') |
| + targetValue = "'" + targetValue + "'"; |
| + this._testFailed('was ' + targetValue + ' instead of ' + outputValue); |
| + } |
|
hongchan
2016/04/18 17:51:21
Can we use single quotes for the string objects? T
Raymond Toy
2016/04/18 18:31:11
Done.
|
| return this._success; |
| }; |