summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A10.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A10.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A10.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A10.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A10.js
new file mode 100644
index 000000000..b82c3c40b
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A10.js
@@ -0,0 +1,23 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+* @name: S15.2.4.3_A10;
+* @section: 15.2.4.3;
+* @assertion: The Object.prototype.toLocaleString.length property has the attribute ReadOnly;
+* @description: Checking if varying the Object.prototype.toLocaleString.length property fails;
+*/
+
+//CHECK#1
+if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) {
+ $FAIL('#1: the Object.prototype.toLocaleString has length property.');
+}
+
+var obj = Object.prototype.toLocaleString.length;
+
+Object.prototype.toLocaleString.length = function(){return "shifted";};
+
+//CHECK#2
+if (Object.prototype.toLocaleString.length !== obj) {
+ $ERROR('#2: the Object.prototype.toLocaleString length property has the attributes ReadOnly.');
+}