bug771157.js (897B)
1 // Binary: cache/js-dbg-64-9cf3ea112635-linux 2 // Flags: --ion-eager 3 // 4 5 var callStack = new Array(); 6 function TestCase(n, d, e, a) { 7 this.expect = e; 8 this.actual = a; 9 this.passed = getTestCaseResult(e, a); 10 dump(+ this.path + ' ' + 'reason: ' + toPrinted(this.reason)+ '\n'); 11 }; 12 function reportCompare (expected, actual, description) { 13 var testcase = new TestCase("unknown-test-name", description, expected, actual); 14 } 15 function enterFunc (funcName) { 16 callStack.push(funcName); 17 var lastFunc = callStack.pop(); 18 reportCompare(funcName, lastFunc, "Test driver failure wrong exit function "); 19 } 20 try { 21 var summary = 'String static methods'; 22 var actual = ''; 23 expect = '2'; 24 reportCompare(expect, actual, summary + " String.toUpperCase(new Boolean(true))"); 25 } catch(exc0) {} 26 try { 27 function TestCase(n, d, e, a) {} 28 enterFunc ('test'); 29 reportCompare(expect, actual, summary); 30 } catch(exc2) {}