bug659779.js (868B)
1 // Binary: cache/js-dbg-64-8bcb569c9bf9-linux 2 // Flags: -m -n -a 3 // 4 5 var gTestcases = new Array; 6 function TestCase(n, d, e, a) { 7 this.description=d 8 gTestcases[gTc++]=this 9 } 10 TestCase.prototype.dump=function () { return + toPrinted(this.description); }; 11 function toPrinted(value) { return value=value; } 12 function reportCompare (expected, actual, description) { 13 new TestCase("unknown-test-name", description, expected, actual) 14 } 15 function enterFunc (funcName) { 16 try { 17 expectCompile = 'No Error' 18 var actualCompile; 19 reportCompare(expectCompile, actualCompile, ': compile actual') 20 } catch(ex) {} 21 } 22 gTc=0; 23 function jsTestDriverEnd() { 24 for (var i = 0; i < gTestcases.length; i++) gTestcases[i].dump() 25 } 26 enterFunc(); 27 reportCompare(0, 0, 5.123456); 28 reportCompare(0, 0, this ); 29 jsTestDriverEnd(); 30 try { 31 this.__proto__=[] 32 } catch(ex) {} 33 jsTestDriverEnd()