js/src/jit-test/tests/auto-regress/bug771157.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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-9cf3ea112635-linux
michael@0 2 // Flags: --ion-eager
michael@0 3 //
michael@0 4
michael@0 5 var callStack = new Array();
michael@0 6 function TestCase(n, d, e, a) {
michael@0 7 this.expect = e;
michael@0 8 this.actual = a;
michael@0 9 this.passed = getTestCaseResult(e, a);
michael@0 10 dump(+ this.path + ' ' + 'reason: ' + toPrinted(this.reason)+ '\n');
michael@0 11 };
michael@0 12 function reportCompare (expected, actual, description) {
michael@0 13 var testcase = new TestCase("unknown-test-name", description, expected, actual);
michael@0 14 }
michael@0 15 function enterFunc (funcName) {
michael@0 16 callStack.push(funcName);
michael@0 17 var lastFunc = callStack.pop();
michael@0 18 reportCompare(funcName, lastFunc, "Test driver failure wrong exit function ");
michael@0 19 }
michael@0 20 try {
michael@0 21 var summary = 'String static methods';
michael@0 22 var actual = '';
michael@0 23 expect = '2';
michael@0 24 reportCompare(expect, actual, summary + " String.toUpperCase(new Boolean(true))");
michael@0 25 } catch(exc0) {}
michael@0 26 try {
michael@0 27 function TestCase(n, d, e, a) {}
michael@0 28 enterFunc ('test');
michael@0 29 reportCompare(expect, actual, summary);
michael@0 30 } catch(exc2) {}

mercurial