bug 603914: update test-traceback tests for changes to stack traces due to slow-native removal; r=toolness
authorMyk Melez <myk@mozilla.org>
Wed, 13 Oct 2010 07:57:15 -0700
changeset 870 ac92e9e6409cc190bd6dffc81cb39481f3236538
parent 869 62180c0cb5b518470c34d3ac9f53711290caeb69
child 871 69f953d0a18f4163072ee9d77cd09595a07a1381
push id379
push usermyk@mozilla.com
push dateWed, 13 Oct 2010 14:57:21 +0000
reviewerstoolness
bugs603914
bug 603914: update test-traceback tests for changes to stack traces due to slow-native removal; r=toolness
packages/jetpack-core/tests/test-traceback.js
--- a/packages/jetpack-core/tests/test-traceback.js
+++ b/packages/jetpack-core/tests/test-traceback.js
@@ -58,18 +58,16 @@ exports.testFormatWithString = function(
 
 exports.testFromExceptionWithError = function(test) {
   try {
     throwError();
     test.fail("an exception should've been thrown");
   } catch (e if e instanceof Error) {
     var tb = traceback.fromException(e);
     test.assertEqual(tb.slice(-1)[0].funcName,
-                     "Error");
-    test.assertEqual(tb.slice(-2)[0].funcName,
                      "throwError");
   }
 };
 
 exports.testFromExceptionWithNsIException = function(test) {
   try {
     throwNsIException();
     test.fail("an exception should've been thrown");