Title: [173330] trunk/LayoutTests
Revision
173330
Author
msab...@apple.com
Date
2014-09-05 13:05:32 -0700 (Fri, 05 Sep 2014)

Log Message

ARM32 iOS: JSC Test math.js fails
https://bugs.webkit.org/show_bug.cgi?id=136261

Reviewed by Geoffrey Garen.

Split out the failing tests to a new test script math-denorm.js.  Added check
at the top of the new file to skip the tests when running on ARM for iOS.

* js/math-denorm-expected.txt: Added.
* js/math-expected.txt:
* js/script-tests/math-denorm.js: Added.
* js/script-tests/math.js:

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (173329 => 173330)


--- trunk/LayoutTests/ChangeLog	2014-09-05 20:05:19 UTC (rev 173329)
+++ trunk/LayoutTests/ChangeLog	2014-09-05 20:05:32 UTC (rev 173330)
@@ -1,3 +1,18 @@
+2014-09-04  Michael Saboff  <msab...@apple.com>
+
+        ARM32 iOS: JSC Test math.js fails
+        https://bugs.webkit.org/show_bug.cgi?id=136261
+
+        Reviewed by Geoffrey Garen.
+
+        Split out the failing tests to a new test script math-denorm.js.  Added check
+        at the top of the new file to skip the tests when running on ARM for iOS.
+
+        * js/math-denorm-expected.txt: Added.
+        * js/math-expected.txt:
+        * js/script-tests/math-denorm.js: Added.
+        * js/script-tests/math.js:
+
 2014-09-05  Benjamin Poulain  <benja...@webkit.org>
 
         Update the current matching of :read-only and :read-write to the latest spec

Added: trunk/LayoutTests/js/math-denorm-expected.txt (0 => 173330)


--- trunk/LayoutTests/js/math-denorm-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/js/math-denorm-expected.txt	2014-09-05 20:05:32 UTC (rev 173330)
@@ -0,0 +1,13 @@
+This test checks the behavior of the Math.ceil and Math.floor on denormalized FP values.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS Math.ceil(Number.MIN_VALUE) is 1
+PASS Math.ceil(-Number.MIN_VALUE) is -0
+PASS Math.floor(Number.MIN_VALUE) is 0
+PASS Math.floor(-Number.MIN_VALUE) is -1
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Modified: trunk/LayoutTests/js/math-expected.txt (173329 => 173330)


--- trunk/LayoutTests/js/math-expected.txt	2014-09-05 20:05:19 UTC (rev 173329)
+++ trunk/LayoutTests/js/math-expected.txt	2014-09-05 20:05:32 UTC (rev 173330)
@@ -53,8 +53,6 @@
 PASS Math.ceil(-1) is -1
 PASS Math.ceil(1.1) is 2
 PASS Math.ceil(-1.1) is -1
-PASS Math.ceil(Number.MIN_VALUE) is 1
-PASS Math.ceil(-Number.MIN_VALUE) is -0
 PASS Math.ceil(Number.MAX_VALUE) is Number.MAX_VALUE
 PASS Math.ceil(-Number.MAX_VALUE) is -Number.MAX_VALUE
 PASS Math.ceil(Infinity) is Infinity
@@ -77,8 +75,6 @@
 PASS Math.floor(-1) is -1
 PASS Math.floor(1.1) is 1
 PASS Math.floor(-1.1) is -2
-PASS Math.floor(Number.MIN_VALUE) is 0
-PASS Math.floor(-Number.MIN_VALUE) is -1
 PASS Math.floor(Number.MAX_VALUE) is Number.MAX_VALUE
 PASS Math.floor(-Number.MAX_VALUE) is -Number.MAX_VALUE
 PASS Math.floor(Infinity) is Infinity

Added: trunk/LayoutTests/js/script-tests/math-denorm.js (0 => 173330)


--- trunk/LayoutTests/js/script-tests/math-denorm.js	                        (rev 0)
+++ trunk/LayoutTests/js/script-tests/math-denorm.js	2014-09-05 20:05:32 UTC (rev 173330)
@@ -0,0 +1,9 @@
+//@ skip if $architecture == "arm" and $hostOS == "darwin"
+
+description("This test checks the behavior of the Math.ceil and Math.floor on denormalized FP values.");
+
+shouldBe("Math.ceil(Number.MIN_VALUE)", "1");
+shouldBe("Math.ceil(-Number.MIN_VALUE)", "-0");
+
+shouldBe("Math.floor(Number.MIN_VALUE)", "0");
+shouldBe("Math.floor(-Number.MIN_VALUE)", "-1");

Modified: trunk/LayoutTests/js/script-tests/math.js (173329 => 173330)


--- trunk/LayoutTests/js/script-tests/math.js	2014-09-05 20:05:19 UTC (rev 173329)
+++ trunk/LayoutTests/js/script-tests/math.js	2014-09-05 20:05:32 UTC (rev 173330)
@@ -90,8 +90,6 @@
 shouldBe("Math.ceil(-1)", "-1");
 shouldBe("Math.ceil(1.1)", "2");
 shouldBe("Math.ceil(-1.1)", "-1");
-shouldBe("Math.ceil(Number.MIN_VALUE)", "1");
-shouldBe("Math.ceil(-Number.MIN_VALUE)", "-0");
 shouldBe("Math.ceil(Number.MAX_VALUE)", "Number.MAX_VALUE");
 shouldBe("Math.ceil(-Number.MAX_VALUE)", "-Number.MAX_VALUE");
 shouldBe("Math.ceil(Infinity)", "Infinity");
@@ -117,8 +115,6 @@
 shouldBe("Math.floor(-1)", "-1");
 shouldBe("Math.floor(1.1)", "1");
 shouldBe("Math.floor(-1.1)", "-2");
-shouldBe("Math.floor(Number.MIN_VALUE)", "0");
-shouldBe("Math.floor(-Number.MIN_VALUE)", "-1");
 shouldBe("Math.floor(Number.MAX_VALUE)", "Number.MAX_VALUE");
 shouldBe("Math.floor(-Number.MAX_VALUE)", "-Number.MAX_VALUE");
 shouldBe("Math.floor(Infinity)", "Infinity");
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to