diff options
Diffstat (limited to 'test/suite/ch15/15.8/15.8.2/15.8.2.12')
5 files changed, 33 insertions, 46 deletions
diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.12/15.8.2.12-1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.12/15.8.2.12-1.js index 4a612a65b..d00069bd2 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.12/15.8.2.12-1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.12/15.8.2.12-1.js @@ -1,18 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.8/15.8.2/15.8.2.12/15.8.2.12-1.js
- * @description Math.min({}) is NaN
- */
-
-
-
-
-
-function testcase() {
- return isNaN(Math.min({}));
-}
-runTestCase(testcase);
\ No newline at end of file +// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Math.min({}) is NaN +includes: [runTestCase.js] +---*/ + +function testcase() { + return isNaN(Math.min({})); +} +runTestCase(testcase); diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A1.js index 94f87343b..339610893 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A1.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If no arguments are given, Math.min() is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A1.js - * @description Checking if Math.min() equals to +Infinity - */ +/*--- +info: If no arguments are given, Math.min() is +Infinity +description: Checking if Math.min() equals to +Infinity +---*/ // CHECK#1 if (Math.min() != +Infinity) { $ERROR("#1: 'Math.min() != +Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A2.js index 362958bd3..ba3215440 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If any value is NaN, the result of Math.min is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A2.js - * @description The script tests Math.min giving 1, 2 and 3 arguments to the function where at least one of the arguments is NaN - */ +/*--- +info: If any value is NaN, the result of Math.min is NaN +description: > + The script tests Math.min giving 1, 2 and 3 arguments to the + function where at least one of the arguments is NaN +---*/ // CHECK#1 if (!isNaN(Math.min(NaN))) @@ -65,4 +65,3 @@ for (i = 0; i <= 2; i++) } } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A3.js index 01150d8c2..218fe0388 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * +0 is considered to be larger than -0 - * - * @path ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A3.js - * @description Checking if Math.max(-0,+0) and Math.max(+0,-0) equals to -0 - */ +/*--- +info: +0 is considered to be larger than -0 +description: Checking if Math.max(-0,+0) and Math.max(+0,-0) equals to -0 +---*/ // CHECK#1 if (Math.max(-0, +0) !== -0) @@ -19,4 +17,3 @@ if (Math.max(+0, -0) !== -0) { $ERROR("#2: 'Math.max(+0, -0) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A4.js index d563445b5..906690857 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of the Math.min method is 2 - * - * @path ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A4.js - * @description Checking if Math.min.length property is defined and equals to 2 - */ +/*--- +info: The length property of the Math.min method is 2 +description: Checking if Math.min.length property is defined and equals to 2 +---*/ // CHECK#1 if (typeof Math.min !== "function") { @@ -22,4 +20,3 @@ if (typeof Math.min.length === "undefined") { if (Math.min.length !== 2) { $ERROR('#3: The length property of the Math.min method is not 2'); } - |