summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A4.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A4.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A4.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A4.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A4.js
new file mode 100644
index 000000000..9d166cbf5
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.11_max/S15.8.2.11_A4.js
@@ -0,0 +1,24 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S15.8.2.11_A4;
+ * @section: 15.8.2.11;
+ * @assertion: The length property of the Math.max method is 2;
+ * @description: Checking if Math.max.length property is defined and equals to 2;
+ */
+
+// CHECK#1
+if (typeof Math.max !== "function") {
+ $ERROR('#1: Math.max method is not defined');
+}
+
+// CHECK#2
+if (typeof Math.max.length === "undefined") {
+ $ERROR('#2: length property of Math.max method is undefined');
+}
+
+// CHECK#3
+if (Math.max.length !== 2) {
+ $ERROR('#3: The length property of the Math.max method is not 2');
+}