js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A1.2_T2.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * Global object has properties such as built-in objects such as
     6  * Math, String, Date, parseInt, etc
     7  *
     8  * @path ch10/10.2/10.2.3/S10.2.3_A1.2_T2.js
     9  * @description Function execution context - Function Properties
    10  */
    12 function test() {
    13   //CHECK#4
    14   if ( eval === null ) {
    15     $ERROR("#4: eval === null");
    16   }
    18   //CHECK#5
    19   if ( parseInt === null ) {
    20     $ERROR("#5: parseInt === null");
    21   }
    23   //CHECK#6
    24   if ( parseFloat === null ) {
    25     $ERROR("#6: parseFloat === null");
    26   }
    28   //CHECK#7
    29   if ( isNaN === null ) {
    30     $ERROR("#7: isNaN === null");
    31   }
    33   //CHECK#8
    34   if ( isFinite === null ) {
    35     $ERROR("#8: isFinite === null");
    36   }
    38   //CHECK#9
    39   if ( decodeURI === null ) {
    40     $ERROR("#9: decodeURI === null");
    41   }
    43   //CHECK#10
    44   if ( decodeURIComponent === null ) {
    45     $ERROR("#10: decodeURIComponent === null");
    46   }
    48   //CHECK#11
    49   if ( encodeURI === null ) {
    50     $ERROR("#11: encodeURI === null");
    51   }
    53   //CHECK#12
    54   if ( encodeURIComponent === null ) {
    55     $ERROR("#12: encodeURIComponent === null");
    56   }
    57 }
    59 test();

mercurial