diff options
Diffstat (limited to 'external/contributions/Google/sputniktests/tests/Regression/S15.1.1.2_R2.2.js')
-rw-r--r-- | external/contributions/Google/sputniktests/tests/Regression/S15.1.1.2_R2.2.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/external/contributions/Google/sputniktests/tests/Regression/S15.1.1.2_R2.2.js b/external/contributions/Google/sputniktests/tests/Regression/S15.1.1.2_R2.2.js new file mode 100644 index 000000000..4b75c98bb --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Regression/S15.1.1.2_R2.2.js @@ -0,0 +1,14 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.1.1.2_R2.2; + * @section: 15.1.1.2, 15.1.2, 15.1.3; + * @description: The Infinity is not ReadOnly, check isFinite Functions that use ToNumber; +*/ + +// CHECK#1 +Infinity = 0; +if (isFinite(Infinity) !== true) { + $ERROR('#1: Infinity = 0; isFinite(Infinity) === true'); +} |