aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/webaudio/resources/audit.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/webaudio/resources/audit.js')
-rw-r--r--tests/wpt/web-platform-tests/webaudio/resources/audit.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/webaudio/resources/audit.js b/tests/wpt/web-platform-tests/webaudio/resources/audit.js
index e3ccd470e4e..4f4c6b7aed8 100644
--- a/tests/wpt/web-platform-tests/webaudio/resources/audit.js
+++ b/tests/wpt/web-platform-tests/webaudio/resources/audit.js
@@ -118,6 +118,8 @@ window.Audit = (function() {
this._expectedDescription = null;
this._detail = '';
+ // If true and the test failed, print the actual value at the
+ // end of the message.
this._printActualForFailure = true;
this._result = null;
@@ -620,7 +622,8 @@ window.Audit = (function() {
passDetail = '${actual} contains only the constant ${expected}.';
} else {
let counter = 0;
- failDetail = 'Expected ${expected} for all values but found ' +
+ failDetail =
+ '${actual}: Expected ${expected} for all values but found ' +
numberOfErrors + ' unexpected values: ';
failDetail += '\n\tIndex\tActual';
for (let errorIndex in errors) {