michael@0: // Binary: cache/js-dbg-64-8bcb569c9bf9-linux michael@0: // Flags: -m -n -a michael@0: // michael@0: michael@0: var gTestcases = new Array; michael@0: function TestCase(n, d, e, a) { michael@0: this.description=d michael@0: gTestcases[gTc++]=this michael@0: } michael@0: TestCase.prototype.dump=function () + toPrinted(this.description) michael@0: function toPrinted(value) value=value; michael@0: function reportCompare (expected, actual, description) { michael@0: new TestCase("unknown-test-name", description, expected, actual) michael@0: } michael@0: function enterFunc (funcName) { michael@0: try { michael@0: expectCompile = 'No Error' michael@0: var actualCompile; michael@0: reportCompare(expectCompile, actualCompile, ': compile actual') michael@0: } catch(ex) {} michael@0: } michael@0: gTc=0; michael@0: function jsTestDriverEnd() { michael@0: for (var i = 0; i < gTestcases.length; i++) gTestcases[i].dump() michael@0: } michael@0: enterFunc(); michael@0: reportCompare(0, 0, 5.123456); michael@0: reportCompare(0, 0, this ); michael@0: jsTestDriverEnd(); michael@0: try { michael@0: this.__proto__=[] michael@0: } catch(ex) {} michael@0: jsTestDriverEnd()