gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/testsuite/actionscript.all Date.as


From: Benjamin Wolsey
Subject: [Gnash-commit] gnash/testsuite/actionscript.all Date.as
Date: Thu, 03 Apr 2008 10:52:31 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Benjamin Wolsey <bwy>   08/04/03 10:52:31

Modified files:
        testsuite/actionscript.all: Date.as 

Log message:
                * testsuite/actionscript.all/Date.as: these are the results on 
                  my machine. Don't expect the overflow result at the moment - 
                  it might be possible to do, but is worth sacrificing for
                  32-bit compatibility at the moment. 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Date.as?cvsroot=gnash&r1=1.47&r2=1.48

Patches:
Index: Date.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Date.as,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- Date.as     1 Apr 2008 22:44:45 -0000       1.47
+++ Date.as     3 Apr 2008 10:52:31 -0000       1.48
@@ -22,7 +22,7 @@
 // execute it like this gnash -1 -r 0 -v out.swf
 
 
-rcsid="$Id: Date.as,v 1.47 2008/04/01 22:44:45 bwy Exp $";
+rcsid="$Id: Date.as,v 1.48 2008/04/03 10:52:31 bwy Exp $";
 #include "check.as"
 
 check_equals(typeof(Date), 'function');
@@ -253,7 +253,7 @@
        check_equals(d.getMonth(), 0);
        check_equals(d.getDate(), 1);
        check_equals(d.getDay(), 4);    // It was a Thursday
-       check_equals(d.getHours(), 1);
+       //check_equals(d.getHours(), 1); // Doesn't this vary according to 
timezone?
        check_equals(d.getMinutes(), 0);
        check_equals(d.getSeconds(), 0);
        check_equals(d.getMilliseconds(), 0);
@@ -495,6 +495,7 @@
        check_equals(d.getSeconds(), 0);
        check_equals(d.getMilliseconds(), 1);
     delete d; var d = new Date(2000,0,1,0,0,0,-1);
+    note (d.valueOf());
        check_equals(d.getFullYear(), 1999);
        check_equals(d.getMonth(), 11);
        check_equals(d.getDate(), 31);
@@ -549,8 +550,11 @@
        
     h = new Date(3.0935415006117e+23);
        check_equals(h.getMilliseconds(), 584);
+       check_equals(h.getSeconds(), 0);
+       check_equals(h.getMinutes(), 4);
+       check_equals(h.getDay(), 2);
        xcheck_equals(h.getFullYear(), -2147481678);
-       check_equals(h.toString(), "Tue Jan -2147483647 16:04:00 GMT+0000 
-2147481678");           
+       xcheck_equals(h.toString(), "Tue Jan -2147483647 16:04:00 GMT+0000 
-2147481678");          
 
 // It's hard to test TimezoneOffset because the values will be different
 // depending upon where geographically you run the tests.
@@ -634,8 +638,8 @@
 check_equals (Date.UTC(1970, 1).toString(), "2678400000");
 check_equals (Date.UTC(1970, 1).valueOf(), 2678400000);
 
-xcheck_equals (Date.UTC(-1, -12).toString(), "-2272060800000");
-xcheck_equals (Date.UTC(-1, 12).valueOf(), -2208988800000);
+check_equals (Date.UTC(-1, -12).toString(), "-2272060800000");
+check_equals (Date.UTC(-1, 12).valueOf(), -2208988800000);
 
 // Check if Date, concatenated to a string, is in human readable form
 d = new Date(2000, 1, 15, 0, 0, 0); 
@@ -659,7 +663,7 @@
 #endif
 
 #if OUTPUT_VERSION == 5
-totals(288);
+totals(290);
 #else
-totals (330);
+totals (332);
 #endif




reply via email to

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