Bug 716478 - update line numbers in JS reftests, necessary because of updating licence to MPL 2 with new, shorter boilerplate.
authorGervase Markham <gerv@gerv.net>
Mon, 21 May 2012 12:13:36 +0100
changeset 98530 b81020e8ca5c5c237ad3721f49b51f204ffff0a3
parent 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 98531 6199ba8e3cd0259f16dc523e639f061519cc3425
push id1116
push userlsblakk@mozilla.com
push dateMon, 16 Jul 2012 19:38:18 +0000
treeherdermozilla-beta@95f959a8b4dc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs716478
milestone15.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 716478 - update line numbers in JS reftests, necessary because of updating licence to MPL 2 with new, shorter boilerplate.
js/src/tests/js1_5/Regress/regress-167328.js
js/src/tests/js1_5/extensions/regress-50447-1.js
--- a/js/src/tests/js1_5/Regress/regress-167328.js
+++ b/js/src/tests/js1_5/Regress/regress-167328.js
@@ -7,17 +7,17 @@
 var BUGNUMBER = 167328;
 var summary = 'Normal error reporting code should fill Error object properties';
 var actual = '';
 var expect = '';
 
 printBugNumber(BUGNUMBER);
 printStatus (summary);
 
-expect = 'TypeError:52';
+expect = 'TypeError:19';
 try
 {
   var obj = {toString: function() {return new Object();}};
   var result = String(obj);
   actual = 'no error';
 }
 catch(e)
 {
--- a/js/src/tests/js1_5/extensions/regress-50447-1.js
+++ b/js/src/tests/js1_5/extensions/regress-50447-1.js
@@ -59,17 +59,17 @@ function testRealError()
   {
     blabla;
   }
   catch (e)
   {
     if (e.fileName.search (/-50447-1\.js$/i) == -1)
       reportCompare('PASS', 'FAIL', "expected fileName to end with '-50447-1.js'");
 
-    reportCompare(94, e.lineNumber,
+    reportCompare(60, e.lineNumber,
 		  "lineNumber property returned unexpected value.");
   }
 
   exitFunc ("testRealError");
 }
 
 
 function test1()
@@ -94,17 +94,17 @@ function test2()
 {
   /* generate an error with only msg property */
   enterFunc ("test2");
 
   /* note this test incorporates the path to the
      test file and assumes the path to the test case
      is a subdirectory of the directory containing jsDriver.pl
   */
-  var expectedLine = 148;
+  var expectedLine = 114;
   var expectedFileName = 'js1_5/extensions/regress-50447-1.js';
   if (typeof document == "undefined")
   {
     expectedFileName = './' + expectedFileName;
   }
   else
   {
     expectedFileName = document.location.href.
@@ -163,17 +163,17 @@ function test3()
 }
 
 
 function test4()
 {
   /* generate an error with only msg and filename properties */
   enterFunc ("test4");
 
-  var expectedLine = 207;
+  var expectedLine = 173;
 
   var e = new InternalError ("msg", "file");
   reportCompare ("(new InternalError(\"msg\", \"file\", " + expectedLine + "))",
 		 e.toSource(),
 		 "toSource() returned unexpected result.");
   reportCompare ("file", e.fileName,
 		 "fileName property returned unexpected value.");
   reportCompare (expectedLine, e.lineNumber,