js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A2.2_T3.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     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_T3.js
     8  * @description Function execution context - Constructor Properties
     9  */
    11 function test() {
    12   //CHECK#1
    13   for (var x in this) {
    14     if ( x === 'Object' ) {
    15       $ERROR("#1: 'property 'Object' have attribute DontEnum");
    16     } else if ( x === 'Function') {
    17       $ERROR("#1: 'Function' have attribute DontEnum");
    18     } else if ( x === 'String' ) {
    19       $ERROR("#1: 'String' have attribute DontEnum");
    20     } else if ( x === 'Number' ) {
    21       $ERROR("#1: 'Number' have attribute DontEnum");
    22     } else if ( x === 'Array' ) {
    23       $ERROR("#1: 'Array' have attribute DontEnum");
    24     } else if ( x === 'Boolean' ) {
    25       $ERROR("#1: 'Boolean' have attribute DontEnum");
    26     } else if ( x === 'Date' ) {
    27       $ERROR("#1: 'Date' have attribute DontEnum");
    28     } else if ( x === 'RegExp' ) {
    29       $ERROR("#1: 'RegExp' have attribute DontEnum");
    30     } else if ( x === 'Error' ) {
    31       $ERROR("#1: 'Error' have attribute DontEnum");
    32     } else if ( x === 'EvalError' ) {
    33       $ERROR("#1: 'EvalError' have attribute DontEnum");
    34     } else if ( x === 'RangeError' ) {
    35       $ERROR("#1: 'RangeError' have attribute DontEnum");
    36     } else if ( x === 'ReferenceError' ) {
    37       $ERROR("#1: 'ReferenceError' have attribute DontEnum");
    38     } else if ( x === 'SyntaxError' ) {
    39       $ERROR("#1: 'SyntaxError' have attribute DontEnum");
    40     } else if ( x === 'TypeError' ) {
    41       $ERROR("#1: 'TypeError' have attribute DontEnum");
    42     } else if ( x === 'URIError' ) {
    43       $ERROR("#1: 'URIError' have attribute DontEnum");
    44     } 
    45   }
    46 }
    48 test();

mercurial