gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. 3cf409337ec623ef21c7


From: Benjamin Wolsey
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. 3cf409337ec623ef21c7282cc0c91637046d242a
Date: Tue, 23 Nov 2010 17:03:48 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  3cf409337ec623ef21c7282cc0c91637046d242a (commit)
      from  68c6bfc69aeda6d360d1885c0e4d1786c1dcf371 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=3cf409337ec623ef21c7282cc0c91637046d242a


commit 3cf409337ec623ef21c7282cc0c91637046d242a
Author: Benjamin Wolsey <address@hidden>
Date:   Tue Nov 23 18:02:15 2010 +0100

    Use a smaller number to avoid discrepencies with floating point
    optimizations.

diff --git a/testsuite/actionscript.all/Date.as 
b/testsuite/actionscript.all/Date.as
index e1a6904..d4162a7 100644
--- a/testsuite/actionscript.all/Date.as
+++ b/testsuite/actionscript.all/Date.as
@@ -547,14 +547,19 @@ note("The pp is known to fail the next three tests");
        check_equals(wierddate.getMilliseconds(), 700);
        check_equals(wierddate.getFullYear(), -100000);    
 
+    // The accessor functions for such a large number give different
+    // results according to the platform and compiler options, so
+    // we won't test them.
     h = new Date(3.0935415006117e+23);
     check_equals(h.valueOf().toString(), "3.0935415006117e+23");
-    check_equals(h.getMilliseconds(), 584);
-    check_equals(h.getSeconds(), 0);
-       check_equals(h.getUTCMilliseconds(), 584);
-       check_equals(h.getUTCSeconds(), 0);
-       check_equals(h.getUTCMinutes(), 4);
-       check_equals(h.getUTCDay(), 2);
+
+    h = new Date(10000001);
+    check_equals(h.getMilliseconds(), 1);
+    check_equals(h.getSeconds(), 40);
+       check_equals(h.getUTCMilliseconds(), 1);
+       check_equals(h.getUTCSeconds(), 40);
+       check_equals(h.getUTCMinutes(), 46);
+       check_equals(h.getUTCDay(), 4);
 
 // It's hard to test TimezoneOffset because the values will be different
 // depending upon where geographically you run the tests.

-----------------------------------------------------------------------

Summary of changes:
 testsuite/actionscript.all/Date.as |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]