CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/10/06 08:20:05
Modified files: . : ChangeLog testsuite/actionscript.all: Number.as Log message: * testsuite/actionscript.all/Number.as: test conversion of a string with a decimal point to a number (fails when locales have comma instead of dot as the decimal point). See bug #21168. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4552&r2=1.4553 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Number.as?cvsroot=gnash&r1=1.31&r2=1.32 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.4552 retrieving revision 1.4553 diff -u -b -r1.4552 -r1.4553 --- ChangeLog 6 Oct 2007 08:17:46 -0000 1.4552 +++ ChangeLog 6 Oct 2007 08:20:05 -0000 1.4553 @@ -1,5 +1,11 @@ 2007-10-06 Sandro Santilli <[EMAIL PROTECTED]> + * testsuite/actionscript.all/Number.as: test conversion of a string + with a decimal point to a number (fails when locales have comma + instead of dot as the decimal point). See bug #21168. + +2007-10-06 Sandro Santilli <[EMAIL PROTECTED]> + * server/asobj/string.{h,cpp} (init_string_instance): when in SWF6 fetch constructor from the global object, to use any overrided one (swfdec testsuite contains a test for this). Index: testsuite/actionscript.all/Number.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Number.as,v retrieving revision 1.31 retrieving revision 1.32 diff -u -b -r1.31 -r1.32 --- testsuite/actionscript.all/Number.as 29 Sep 2007 16:22:58 -0000 1.31 +++ testsuite/actionscript.all/Number.as 6 Oct 2007 08:20:05 -0000 1.32 @@ -27,7 +27,7 @@ // TODO: test with SWF target != 6 (the only one tested so far) // -rcsid="$Id: Number.as,v 1.31 2007/09/29 16:22:58 strk Exp $"; +rcsid="$Id: Number.as,v 1.32 2007/10/06 08:20:05 strk Exp $"; #include "check.as" @@ -352,6 +352,9 @@ asm { push 'val','2p' tonumber setvariable }; check(isNaN(val)); +asm { push 'val','2.6' tonumber setvariable }; +check_equals(val, 2.6); + asm { push 'val','string' tonumber setvariable }; check(isNaN(val)); _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit