michael@0: // Binary: cache/js-dbg-64-9cf3ea112635-linux michael@0: // Flags: --ion-eager michael@0: // michael@0: michael@0: var callStack = new Array(); michael@0: function TestCase(n, d, e, a) { michael@0: this.expect = e; michael@0: this.actual = a; michael@0: this.passed = getTestCaseResult(e, a); michael@0: dump(+ this.path + ' ' + 'reason: ' + toPrinted(this.reason)+ '\n'); michael@0: }; michael@0: function reportCompare (expected, actual, description) { michael@0: var testcase = new TestCase("unknown-test-name", description, expected, actual); michael@0: } michael@0: function enterFunc (funcName) { michael@0: callStack.push(funcName); michael@0: var lastFunc = callStack.pop(); michael@0: reportCompare(funcName, lastFunc, "Test driver failure wrong exit function "); michael@0: } michael@0: try { michael@0: var summary = 'String static methods'; michael@0: var actual = ''; michael@0: expect = '2'; michael@0: reportCompare(expect, actual, summary + " String.toUpperCase(new Boolean(true))"); michael@0: } catch(exc0) {} michael@0: try { michael@0: function TestCase(n, d, e, a) {} michael@0: enterFunc ('test'); michael@0: reportCompare(expect, actual, summary); michael@0: } catch(exc2) {}