gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/testsuite/actionscript.all toString_value...


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite/actionscript.all toString_value...
Date: Mon, 06 Aug 2007 20:52:20 +0000

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

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

Log message:
        check -> check_equals (check_equals should always be preferred when 
available)

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

Patches:
Index: toString_valueOf.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/toString_valueOf.as,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- toString_valueOf.as 5 Aug 2007 06:14:30 -0000       1.2
+++ toString_valueOf.as 6 Aug 2007 20:52:20 -0000       1.3
@@ -326,13 +326,13 @@
 #endif
 
 d1 = new Date(0);
-check(typeof(d1) == "object");
+check_equals(typeof(d1), "object");
 x = d1.toString();
 y = d1.valueOf();
-check(typeof(x) == "string");  
-check(typeof(y) == "number");   
-check(x == "Thu Jan 1 08:00:00 GMT+0800 1970");
-check(y == 0);
+check_equals(typeof(x), "string");  
+check_equals(typeof(y), "number");   
+check_equals(x, "Thu Jan 1 08:00:00 GMT+0800 1970");
+check_equals(y, 0);
 
 d2 = new Date(1);
 d3 = d1 + d2;




reply via email to

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