| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: The length property of the Math.max method is 2 |
| 6 |
es5id: 15.8.2.11_A4 |
| 7 |
description: Checking if Math.max.length property is defined and equals to 2 |
| 8 |
---*/ |
| 9 |
|
| 10 |
// CHECK#1 |
| 11 |
if (typeof Math.max !== "function") { |
| 12 |
$ERROR('#1: Math.max method is not defined'); |
| 13 |
} |
| 14 |
|
| 15 |
// CHECK#2 |
| 16 |
if (typeof Math.max.length === "undefined") { |
| 17 |
$ERROR('#2: length property of Math.max method is undefined'); |
| 18 |
} |
| 19 |
|
| 20 |
// CHECK#3 |
| 21 |
if (Math.max.length !== 2) { |
| 22 |
$ERROR('#3: The length property of the Math.max method is not 2'); |
| 23 |
} |