gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/toSt...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/toSt...
Date: Mon, 06 Aug 2007 21:08:45 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/08/06 21:08:45

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: toString_valueOf.as 

Log message:
                * testsuite/actionscript.all/toString_valueOf.as: fix some
                  of the tests, disable a test depending on timezone. Please
                  further tests on Date go to the Date.as file.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3956&r2=1.3957
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/toString_valueOf.as?cvsroot=gnash&r1=1.3&r2=1.4

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3956
retrieving revision 1.3957
diff -u -b -r1.3956 -r1.3957
--- ChangeLog   6 Aug 2007 20:42:56 -0000       1.3956
+++ ChangeLog   6 Aug 2007 21:08:45 -0000       1.3957
@@ -1,5 +1,8 @@
 2007-08-06 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/toString_valueOf.as: fix some
+         of the tests, disable a test depending on timezone. Please
+         further tests on Date go to the Date.as file.
        * server/as_value.{cpp,h}: add a to_int() method taking
          care of compatible integer conversion. Add note about
          deprecation of templated to_number<>.

Index: testsuite/actionscript.all/toString_valueOf.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/toString_valueOf.as,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- testsuite/actionscript.all/toString_valueOf.as      6 Aug 2007 20:52:20 
-0000       1.3
+++ testsuite/actionscript.all/toString_valueOf.as      6 Aug 2007 21:08:45 
-0000       1.4
@@ -331,19 +331,26 @@
 y = d1.valueOf();
 check_equals(typeof(x), "string");  
 check_equals(typeof(y), "number");   
-check_equals(x, "Thu Jan 1 08:00:00 GMT+0800 1970");
+// NOTE: the value of toString() here depends on timezone !
+//       It's the epoch, but depending on timezone the GMT+<x> and actual hour 
change
+//       For this reason the test is disabled till a solution is found.
+//check_equals(x, "Thu Jan 1 08:00:00 GMT+0800 1970"); 
 check_equals(y, 0);
 
 d2 = new Date(1);
-d3 = d1 + d2;
+d3 = d1 + d2; // in SWF5 this should result in a number, in SWF6 or higher, in 
a string
+exp = d1.toString() + d2.toString();
 #if OUTPUT_VERSION > 5 
-  xcheck(typeof(d3) == 'string');
-  xcheck(d3 == "Thu Jan 1 08:00:00 GMT+0800 1970Thu Jan 1 08:00:00 GMT+0800 
1970");
+  xcheck_equals(typeof(d3), 'string');
+  xcheck_equals(d3, exp);
 #else
-  check(typeof(d3) == 'number');
-  check(d3 == 1);
+  check_equals(typeof(d3), 'number');
+  check_equals(d3, 1);
 #endif
 
+// Date(0) == Date(1) 
+check_equals(d1.toString(), d2.toString());
+
 //
 //Testing toString and valueOf of Array
 //




reply via email to

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