File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 420420 for ( var i = 0 ; i < e . length ; i ++ ) {
421421 var message = pst . opera10a ( e [ i ] ) ;
422422 //equals(message.join("\n"), 'debug', 'debug');
423- equals ( message . length , 7 , 'number of stack entries' ) ;
424- equals ( message [ 0 ] . indexOf ( 'this.undef()' ) >= 0 , true , 'this.undef() is at the top of stack' ) ;
423+ // NOTE: the important thing here is that the user sees calls to bar and foo in the correct order
424+ // We cannot test the size of the stack because it's inconsistent
425+ equals ( message [ message . length - 3 ] . indexOf ( 'bar(' ) >= 0 , true , 'bar is 3nd from the bottom of stack' ) ;
426+ equals ( message [ message . length - 2 ] . indexOf ( 'bar(2)' ) >= 0 , true , 'bar is 2nd from the bottom of stack' ) ;
425427 equals ( message [ message . length - 1 ] . indexOf ( 'foo()' ) >= 0 , true , 'foo() is at the bottom of stack' ) ;
426428 }
427429 } ) ;
You can’t perform that action at this time.
0 commit comments