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/Glob...


From: Benjamin Wolsey
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Glob...
Date: Thu, 06 Mar 2008 12:34:32 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Benjamin Wolsey <bwy>   08/03/06 12:34:32

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

Log message:
                * testsuite/actionscript.all/Global.as: add some checks that 
would
                  have caught a mistake in parseFloat.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5817&r2=1.5818
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Global.as?cvsroot=gnash&r1=1.42&r2=1.43

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5817
retrieving revision 1.5818
diff -u -b -r1.5817 -r1.5818
--- ChangeLog   6 Mar 2008 11:42:33 -0000       1.5817
+++ ChangeLog   6 Mar 2008 12:34:31 -0000       1.5818
@@ -1,5 +1,10 @@
 2008-03-06 Benjamin Wolsey <address@hidden>
 
+       * testsuite/actionscript.all/Global.as: add some checks that would
+         have caught a mistake in parseFloat.
+
+2008-03-06 Benjamin Wolsey <address@hidden>
+
        * server/vm/ASHandlers.cpp: fix mbchr to return a UTF-8 string;
          make sure both mbchr and chr handle characters only up to
          65535. Fixes behaviour for SWF6, 7, and 8.

Index: testsuite/actionscript.all/Global.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Global.as,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- testsuite/actionscript.all/Global.as        5 Mar 2008 03:56:04 -0000       
1.42
+++ testsuite/actionscript.all/Global.as        6 Mar 2008 12:34:31 -0000       
1.43
@@ -102,6 +102,12 @@
 check ( parseFloat('               -2001.5') >= -2001.51 && parseFloat('       
    -2001.5') <= -2001.49 );
 check ( parseFloat('            5.13123abc2.35387') >= 5.1312 && parseFloat('  
         5.13123abc2.35387') <= 5.1313 );
 check ( isNaN(parseFloat('         x1.234')) );
+check ( isNaN(parseFloat('')) );
+
+check ( ! isNaN (parseFloat('           5.13123abc2.35387')));
+check ( parseFloat('3.45e-5') >= 3.449e-5 && parseFloat('3.45e-5') <= 
3.451e-5);
+check ( parseFloat('3.45E-5') >= 3.449e-5 && parseFloat('3.45E-5') <= 
3.451e-5);
+check ( parseFloat('3.45eE-5') >= 3.449 && parseFloat('3.45eE-5') <= 3.451);
 
 // All %NN must become the corresponding ascii char
 check_equals ( unescape('%3A%2F%3F%3D%26'), ':/?=&' );
@@ -357,15 +363,15 @@
 //------------------------------------------------------------
 
 #if OUTPUT_VERSION == 5
-       check_totals(77); // SWF5
+       check_totals(79); // SWF5
 #else
 # if OUTPUT_VERSION == 6
-       check_totals(111); // SWF6
+       check_totals(113); // SWF6
 # else
 #  if OUTPUT_VERSION == 7
-       check_totals(93); // SWF7
+       check_totals(95); // SWF7
 #  else
-       check_totals(80); // SWF8+
+       check_totals(82); // SWF8+
 #  endif
 # endif
 #endif




reply via email to

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