Skip to content

Commit 3d14d95

Browse files
committed
Fixing opera10a test
1 parent fbc6cfb commit 3d14d95

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎test/TestStacktrace.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,10 @@
419419
for (var i = 0; i < e.length; i++) {
420420
var message = pst.opera10a(e[i]);
421421
//equals(message.join("\n"), 'debug', 'debug');
422-
equals(message.length, 7, 'number of stack entries');
423-
equals(message[0].indexOf('this.undef()') >= 0, true, 'this.undef() is at the top of stack');
422+
// NOTE: the important thing here is that the user sees calls to bar and foo in the correct order
423+
// We cannot test the size of the stack because it's inconsistent
424+
equals(message[message.length - 3].indexOf('bar(') >= 0, true, 'bar is 3nd from the bottom of stack');
425+
equals(message[message.length - 2].indexOf('bar(2)') >= 0, true, 'bar is 2nd from the bottom of stack');
424426
equals(message[message.length - 1].indexOf('foo()') >= 0, true, 'foo() is at the bottom of stack');
425427
}
426428
});
@@ -686,7 +688,7 @@
686688
for (var i = 0; i < results.length; ++i) {
687689
//equals((results[i]), '', 'debug');
688690
var functions = p.guessAnonymousFunctions(results[i]);
689-
//equals(functions.join("\n"), '', 'debug');
691+
equals(functions.join("\n"), '', 'debug');
690692
equals(functions[2].indexOf('f2()'), 0, 'guessed f2 in ' + functions[2]);
691693
}
692694
});

0 commit comments

Comments
 (0)