summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.5_Properties_of_Number_Instances/S15.7.5_A1_T03.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.5_Properties_of_Number_Instances/S15.7.5_A1_T03.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.5_Properties_of_Number_Instances/S15.7.5_A1_T03.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.5_Properties_of_Number_Instances/S15.7.5_A1_T03.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.5_Properties_of_Number_Instances/S15.7.5_A1_T03.js
new file mode 100644
index 000000000..5d4d8436d
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.5_Properties_of_Number_Instances/S15.7.5_A1_T03.js
@@ -0,0 +1,21 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S15.7.5_A1_T03;
+ * @section: 15.7.5;
+ * @assertion: Number instances have no special properties beyond those
+ * inherited from the Number prototype object;
+ * @description: Checking property toLocaleString;
+*/
+
+//CHECK#1
+if((new Number()).hasOwnProperty("toLocaleString") !== false){
+ $ERROR('#1: Number instance must have no special property "toLocaleString"');
+}
+
+//CHECK#2
+if((new Number()).toLocaleString !== Number.prototype.toLocaleString){
+ $ERROR('#2: Number instance property "toLocaleString" must be inherited from Number prototype object');
+}
+