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 varying the String.prototype.toLocaleUpperCase.length
12 includes: [propertyHelper.js]
15 //////////////////////////////////////////////////////////////////////////////
17 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) {
18 throw new Test262Error('#1: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length'));
21 //////////////////////////////////////////////////////////////////////////////
23 var __obj = String.prototype.toLocaleUpperCase.length;
25 verifyNotWritable(String.prototype.toLocaleUpperCase, "length", null, function() {
29 //////////////////////////////////////////////////////////////////////////////
31 if (String.prototype.toLocaleUpperCase.length !== __obj) {
32 throw new Test262Error('#2: __obj = String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.length = function(){return "shifted";}; String.prototype.toLocaleUpperCase.length === __obj. Actual: ' + String.prototype.toLocaleUpperCase.length);
35 //////////////////////////////////////////////////////////////////////////////