summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Math/min/S15.8.2.12_A4.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Math/min/S15.8.2.12_A4.js')
-rw-r--r--js/src/tests/test262/built-ins/Math/min/S15.8.2.12_A4.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Math/min/S15.8.2.12_A4.js b/js/src/tests/test262/built-ins/Math/min/S15.8.2.12_A4.js
new file mode 100644
index 0000000000..6af0a31714
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Math/min/S15.8.2.12_A4.js
@@ -0,0 +1,13 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+info: The length property of the Math.min method is 2
+es5id: 15.8.2.12_A4
+description: Checking if Math.min.length property is defined and equals to 2
+---*/
+assert.sameValue(typeof Math.min, "function", 'The value of `typeof Math.min` is expected to be "function"');
+assert.notSameValue(typeof Math.min.length, "undefined", 'The value of typeof Math.min.length is not "undefined"');
+assert.sameValue(Math.min.length, 2, 'The value of Math.min.length is expected to be 2');
+
+reportCompare(0, 0);