gnash-commit
[Top][All Lists]
Advanced

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

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


From: strk
Subject: [Gnash-commit] gnash/testsuite/actionscript.all Global.as
Date: Mon, 13 Feb 2006 11:11:59 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         
Changes by:     strk <address@hidden>   06/02/13 11:11:59

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

Log message:
        Fixed bogus tests

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Global.as.diff?tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: gnash/testsuite/actionscript.all/Global.as
diff -u gnash/testsuite/actionscript.all/Global.as:1.6 
gnash/testsuite/actionscript.all/Global.as:1.7
--- gnash/testsuite/actionscript.all/Global.as:1.6      Fri Feb 10 01:35:55 2006
+++ gnash/testsuite/actionscript.all/Global.as  Mon Feb 13 11:11:58 2006
@@ -34,7 +34,7 @@
 // Test parseint with hex
 check ( parseInt('0x111') == 273 );
 // Test parseint with octal
-check ( parseInt('   0352') == 234 );
+check ( parseInt('   0352') == 352 );
 // Test parseint with 36 base
 check ( parseInt('2GA',36) == (10+16*36+2*36*36) );
 // Test parseint with base 17 - the 'H' is not part of base 17, only the first 
two digits are valid
@@ -43,7 +43,7 @@
 check ( isNan(parseInt('a1023')) );
 check ( isNaN(parseInt('zero')) );
 // parseInt returns NaN (which is different from infinity)
-check ( isFinite(parseInt('none')) );
+check ( ! isFinite(parseInt('none')) );
 check ( ! isFinite(1/0) );
 check ( ! isNaN(1/0) );
 




reply via email to

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