diff --git a/src/test/html/content/harness.js b/src/test/html/content/harness.js
index d2a44a15be9..678d1ac4119 100644
--- a/src/test/html/content/harness.js
+++ b/src/test/html/content/harness.js
@@ -1,15 +1,16 @@
-function _fail(s) {
+function _fail(s, m) {
// string split to avoid problems with tests that end up printing the value of window._fail.
- window.alert("TEST-UNEXPECTED" + "-FAIL | " + s);
+ window.alert("TEST-UNEXPECTED" + "-FAIL | " + s + ": " + m);
}
-function _pass(s) {
- window.alert("TEST-PASS | " + s);
+function _pass(s, m) {
+ window.alert("TEST-PASS | " + s + ": " + m);
}
-function is(a, b) {
+function is(a, b, c) {
let f = a != b ? _fail : _pass;
- f(a + " == " + b);
+ let m = !c ? "" : c;
+ f(a + " == " + b, m);
}
var _test_complete = false;