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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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