Bug 997489 - Fix stray </tt> tag causing JS warning spam during jsreftests; r=Waldo
authorEd Morley <emorley@mozilla.com>
Thu, 24 Apr 2014 10:33:10 +0100
changeset 180271 e733167dc8acc8885c7623310244cfb8a5558802
parent 180270 462059b115ec4bd72d6e0646b99699640a3eecc6
child 180272 a922f75bfb1831a1e8bb0f39e667a0e2223a109c
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersWaldo
bugs997489
milestone31.0a1
Bug 997489 - Fix stray </tt> tag causing JS warning spam during jsreftests; r=Waldo
js/src/tests/browser.js
--- a/js/src/tests/browser.js
+++ b/js/src/tests/browser.js
@@ -103,17 +103,17 @@ function writeFormattedResult( expect, a
     dump( string + '\n');
   }
 
   string = string.replace(/[<>&]/g, htmlesc);
 
   var s = "<tt>"+ string ;
   s += "<b>" ;
   s += ( passed ) ? "<font color=#009900> &nbsp;" + PASSED
-    : "<font color=#aa0000>&nbsp;" +  FAILED + expect + "</tt>";
+    : "<font color=#aa0000>&nbsp;" +  FAILED + expect;
 
   DocumentWrite( s + "</font></b></tt><br>" );
   return passed;
 }
 
 window.onerror = function (msg, page, line)
 {
   jstestsTestPassesUnlessItThrows = false;