Changeset 103926 in webkit for trunk/Source/JavaScriptCore/tests


Ignore:
Timestamp:
Jan 2, 2012, 11:00:20 PM (13 years ago)
Author:
[email protected]
Message:

Check in fixes for jsc tests following bug #75455.

  • tests/mozilla/ecma/GlobalObject/15.1.2.2-1.js:
  • tests/mozilla/ecma/GlobalObject/15.1.2.2-2.js:
Location:
trunk/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/15.1.2.2-1.js

    r11995 r103926  
    207207    }
    208208
    209     //  let us do some octal tests.  numbers that start with 0 and do not provid a radix should
    210     //  default to using "0" as a radix.
     209    //  let us do some 'octal' tests - ES5 does not permit octal, these must be treated as decimal.
    211210
    212211    var OCT_STRING = "0";
     
    215214    for ( OCT_STRING = "0", OCT_VALUE = 0, POWER = 0; POWER < 15; POWER++, OCT_STRING = OCT_STRING +"7" ) {
    216215        array[item++] = new TestCase( SECTION, "parseInt("+OCT_STRING+")",    OCT_VALUE,  parseInt(OCT_STRING) );
    217         OCT_VALUE += Math.pow(8,POWER)*7;
     216        OCT_VALUE += Math.pow(10,POWER)*7;
    218217    }
    219218
    220219    for ( OCT_STRING = "-0", OCT_VALUE = 0, POWER = 0; POWER < 15; POWER++, OCT_STRING = OCT_STRING +"7" ) {
    221220        array[item++] = new TestCase( SECTION, "parseInt("+OCT_STRING+")",    OCT_VALUE,  parseInt(OCT_STRING) );
    222         OCT_VALUE -= Math.pow(8,POWER)*7;
     221        OCT_VALUE -= Math.pow(10,POWER)*7;
    223222    }
    224223
  • trunk/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/15.1.2.2-2.js

    r11995 r103926  
    139139testcases[tc++] = new TestCase( SECTION,
    140140    'parseInt("0022")',
    141     18,
     141    22,
    142142    parseInt("0022"));
    143143
Note: See TracChangeset for help on using the changeset viewer.