js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A2.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 properties have attributes { DontEnum }
     6  *
     7  * @path ch10/10.2/10.2.3/S10.2.3_A2.2_T2.js
     8  * @description Function execution context - Function Properties
     9  */
    11 function test() {
    12   //CHECK#1
    13   for (var x in this) {
    14     if ( x === 'eval' ) {
    15       $ERROR("#1: 'eval' have attribute DontEnum");
    16     } else if ( x === 'parseInt' ) {
    17       $ERROR("#1: 'parseInt' have attribute DontEnum");
    18     } else if ( x === 'parseFloat' ) {
    19       $ERROR("#1: 'parseFloat' have attribute DontEnum");
    20     } else if ( x === 'isNaN' ) {
    21       $ERROR("#1: 'isNaN' have attribute DontEnum");
    22     } else if ( x === 'isFinite' ) {
    23       $ERROR("#1: 'isFinite' have attribute DontEnum");
    24     } else if ( x === 'decodeURI' ) {
    25       $ERROR("#1: 'decodeURI' have attribute DontEnum");
    26     } else if ( x === 'decodeURIComponent' ) {
    27       $ERROR("#1: 'decodeURIComponent' have attribute DontEnum");
    28     } else if ( x === 'encodeURI' ) {
    29       $ERROR("#1: 'encodeURI' have attribute DontEnum");
    30     } else if ( x === 'encodeURIComponent' ) {
    31       $ERROR("#1: 'encodeURIComponent' have attribute DontEnum");
    32     } 
    33   }
    34 }
    36 test();

mercurial