summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.3_Properties_of_Number_Constructor/S15.7.3_A8.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.3_Properties_of_Number_Constructor/S15.7.3_A8.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.3_Properties_of_Number_Constructor/S15.7.3_A8.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.3_Properties_of_Number_Constructor/S15.7.3_A8.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.3_Properties_of_Number_Constructor/S15.7.3_A8.js
new file mode 100644
index 000000000..5a0cb6b3e
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.7_Number_Objects/15.7.3_Properties_of_Number_Constructor/S15.7.3_A8.js
@@ -0,0 +1,19 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+* @name: S15.7.3_A8;
+* @section: 15.7.3;
+* @assertion: Number constructor has length property whose value is 1;
+* @description: Checking Number.length property;
+*/
+
+//CHECK#1
+if (!Number.hasOwnProperty("length")){
+ $ERROR('#1: Number constructor has length property');
+}
+
+//CHECK#2
+if (Number.length !== 1) {
+ $ERROR('#2: Number constructor length property value is 1');
+}