Fix some more INFINITI->INFINITY typos
Unreviewed.
The tests were not covering the edge cases they were supposed to test.
Patch by Benjamin Poulain <bpoulain@apple.com> on 2016-06-03
* tests/stress/math-ceil-basics.js:
(testMathCeilOnConstants):
* tests/stress/math-clz32-basics.js:
(testMathClz32OnDoubles):
(testMathClz32OnConstants):
* tests/stress/math-floor-basics.js:
(testMathFloorOnConstants):
* tests/stress/math-round-basics.js:
(testMathRoundOnConstants):
* tests/stress/math-trunc-basics.js:
(testMathTruncOnConstants):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/JavaScriptCore/tests/stress/math-floor-basics.js b/Source/JavaScriptCore/tests/stress/math-floor-basics.js
index 7448eb9..f0c9c95 100644
--- a/Source/JavaScriptCore/tests/stress/math-floor-basics.js
+++ b/Source/JavaScriptCore/tests/stress/math-floor-basics.js
@@ -220,12 +220,12 @@
var value = Math.floor(NaN);
if (value === value)
throw new Error("Math.floor(NaN) = " + value);
- var value = Math.floor(Number.POSITIVE_INFINITI);
- if (value === value)
- throw new Error("Math.floor(Number.POSITIVE_INFINITI) = " + value);
- var value = Math.floor(Number.NEGATIVE_INFINITI);
- if (value === value)
- throw new Error("Math.floor(Number.NEGATIVE_INFINITI) = " + value);
+ var value = Math.floor(Number.POSITIVE_INFINITY);
+ if (value !== Infinity)
+ throw new Error("Math.floor(Number.POSITIVE_INFINITY) = " + value);
+ var value = Math.floor(Number.NEGATIVE_INFINITY);
+ if (value !== -Infinity)
+ throw new Error("Math.floor(Number.NEGATIVE_INFINITY) = " + value);
var value = Math.floor(Math.E);
if (value !== 2)
throw new Error("Math.floor(Math.E) = " + value);