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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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

mercurial