michael@0: var gTestcases = 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 () + + + michael@0: + this.description + + michael@0: + + '\n';function printStatus (msg) michael@0: function toPrinted(value) { michael@0: } michael@0: function reportCompare(expected, actual, description) { michael@0: new TestCase("unknown-test-name", description, expected, actual) michael@0: } michael@0: gTc = 0;; michael@0: function jsTestDriverEnd() { michael@0: for (var i = 0; i < gTestcases.length; i++) michael@0: gTestcases[i].dump() michael@0: } michael@0: var summary = 'Do not assert with try/finally inside finally'; michael@0: var expect = 'No Crash'; michael@0: reportCompare(expect, printStatus, summary); michael@0: jsTestDriverEnd(); michael@0: jsTestDriverEnd(); michael@0: try { michael@0: f michael@0: } catch (ex) { michael@0: actual = '' michael@0: } michael@0: reportCompare(expect, actual, 5); michael@0: jsTestDriverEnd()