Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | var gTestcases = Array; |
michael@0 | 2 | function TestCase(n, d, e, a) { |
michael@0 | 3 | this.description = d |
michael@0 | 4 | gTestcases[gTc] = this |
michael@0 | 5 | } |
michael@0 | 6 | TestCase.prototype.dump=function () + + + |
michael@0 | 7 | + this.description + + |
michael@0 | 8 | + + '\n';function printStatus (msg) |
michael@0 | 9 | function toPrinted(value) { |
michael@0 | 10 | } |
michael@0 | 11 | function reportCompare(expected, actual, description) { |
michael@0 | 12 | new TestCase("unknown-test-name", description, expected, actual) |
michael@0 | 13 | } |
michael@0 | 14 | gTc = 0;; |
michael@0 | 15 | function jsTestDriverEnd() { |
michael@0 | 16 | for (var i = 0; i < gTestcases.length; i++) |
michael@0 | 17 | gTestcases[i].dump() |
michael@0 | 18 | } |
michael@0 | 19 | var summary = 'Do not assert with try/finally inside finally'; |
michael@0 | 20 | var expect = 'No Crash'; |
michael@0 | 21 | reportCompare(expect, printStatus, summary); |
michael@0 | 22 | jsTestDriverEnd(); |
michael@0 | 23 | jsTestDriverEnd(); |
michael@0 | 24 | try { |
michael@0 | 25 | f |
michael@0 | 26 | } catch (ex) { |
michael@0 | 27 | actual = '' |
michael@0 | 28 | } |
michael@0 | 29 | reportCompare(expect, actual, 5); |
michael@0 | 30 | jsTestDriverEnd() |