bug658212.js (808B)
1 var gTestcases = Array; 2 function TestCase(n, d, e, a) { 3 this.description = d 4 gTestcases[gTc] = this 5 } 6 TestCase.prototype.dump=function () { return + + + 7 + this.description + + 8 + + '\n'; 9 }; 10 function printStatus (msg) { 11 return function toPrinted(value) { 12 }; 13 } 14 function reportCompare(expected, actual, description) { 15 new TestCase("unknown-test-name", description, expected, actual) 16 } 17 gTc = 0;; 18 function jsTestDriverEnd() { 19 for (var i = 0; i < gTestcases.length; i++) 20 gTestcases[i].dump() 21 } 22 var summary = 'Do not assert with try/finally inside finally'; 23 var expect = 'No Crash'; 24 reportCompare(expect, printStatus, summary); 25 jsTestDriverEnd(); 26 jsTestDriverEnd(); 27 try { 28 f 29 } catch (ex) { 30 actual = '' 31 } 32 reportCompare(expect, actual, 5); 33 jsTestDriverEnd()