blob: 3f20ddf569fa3454038c8e7bfe242049f4649734 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S8.6.1_A2;
* @section: 8.6.1, 12.6.4, 15.7;
* @assertion: A property can have attribute DontEnum like all properties of Number;
* @description: Try to enumerate properties of Number;
*/
// Converted for Test262 from original Sputnik source
ES5Harness.registerTest( {
id: "S8.6.1_A2",
path: "TestCases/08_Types/8.6_The_Object_Type/8.6.1_Property_Attributes/S8.6.1_A2.js",
assertion: "A property can have attribute DontEnum like all properties of Number",
description: "Try to enumerate properties of Number",
test: function testcase() {
//CHECK#1
var count=0;
for (p in Number) count++;
if (count > 0){
$ERROR('#1: count=0; for (p in Number) count++; count > 0. Actual: ' + (count));
}
}
});
|