js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A2.1_T2.js

branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
equal deleted inserted replaced
-1:000000000000 0:ec4e19818d3a
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /**
5 * Global object properties have attributes { DontEnum }
6 *
7 * @path ch10/10.2/10.2.3/S10.2.3_A2.1_T2.js
8 * @description Global execution context - Function Properties
9 */
10
11 //CHECK#1
12 for (var x in this) {
13 if ( x === 'eval' ) {
14 $ERROR("#1: 'eval' have attribute DontEnum");
15 } else if ( x === 'parseInt' ) {
16 $ERROR("#1: 'parseInt' have attribute DontEnum");
17 } else if ( x === 'parseFloat' ) {
18 $ERROR("#1: 'parseFloat' have attribute DontEnum");
19 } else if ( x === 'isNaN' ) {
20 $ERROR("#1: 'isNaN' have attribute DontEnum");
21 } else if ( x === 'isFinite' ) {
22 $ERROR("#1: 'isFinite' have attribute DontEnum");
23 } else if ( x === 'decodeURI' ) {
24 $ERROR("#1: 'decodeURI' have attribute DontEnum");
25 } else if ( x === 'decodeURIComponent' ) {
26 $ERROR("#1: 'decodeURIComponent' have attribute DontEnum");
27 } else if ( x === 'encodeURI' ) {
28 $ERROR("#1: 'encodeURI' have attribute DontEnum");
29 } else if ( x === 'encodeURIComponent' ) {
30 $ERROR("#1: 'encodeURIComponent' have attribute DontEnum");
31 }
32 }
33

mercurial