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