1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
6 The String.prototype.toLocaleUpperCase.length property has the attribute
10 Checking if enumerating the
11 String.prototype.toLocaleUpperCase.length property fails
14 //////////////////////////////////////////////////////////////////////////////
16 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) {
17 throw new Test262Error('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length'));
20 //////////////////////////////////////////////////////////////////////////////
23 //////////////////////////////////////////////////////////////////////////////
25 if (String.prototype.toLocaleUpperCase.propertyIsEnumerable('length')) {
26 throw new Test262Error('#1: String.prototype.toLocaleUpperCase.propertyIsEnumerable(\'length\') return false');
29 //////////////////////////////////////////////////////////////////////////////
31 //////////////////////////////////////////////////////////////////////////////
35 for (var p in String.prototype.toLocaleUpperCase) {
36 if (p === "length") count++;
40 throw new Test262Error('#2: count=0; for (p in String.prototype.toLocaleUpperCase){if (p==="length") count++;}; count === 0. Actual: ' + count);
43 //////////////////////////////////////////////////////////////////////////////