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_T04.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_T04.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_T04.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_T04.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_T04.js
new file mode 100644
index 000000000..b50d6a2eb
--- /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_T04.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_T04;
+ * @section: 15.7.5;
+ * @assertion: Number instances have no special properties beyond those
+ * inherited from the Number prototype object;
+ * @description: Checking property valueOf;
+*/
+
+//CHECK#1
+if((new Number()).hasOwnProperty("valueOf") !== false){
+ $ERROR('#1: Number instance must have no special property "valueOf"');
+}
+
+//CHECK#2
+if((new Number()).valueOf !== Number.prototype.valueOf){
+ $ERROR('#2: Number instance property "valueOf" must be inherited from Number prototype object');
+}
+