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