CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/09/27 20:01:16
Modified files: . : ChangeLog testsuite/actionscript.all: Global.as Log message: * testsuite/actionscript.all/Global.as: test that parseInt() would call a custom toString() function against first parameter, if an object. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4450&r2=1.4451 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Global.as?cvsroot=gnash&r1=1.28&r2=1.29 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.4450 retrieving revision 1.4451 diff -u -b -r1.4450 -r1.4451 --- ChangeLog 27 Sep 2007 19:26:03 -0000 1.4450 +++ ChangeLog 27 Sep 2007 20:01:15 -0000 1.4451 @@ -1,3 +1,9 @@ +2007-09-27 Sandro Santilli <[EMAIL PROTECTED]> + + * testsuite/actionscript.all/Global.as: test that parseInt() would + call a custom toString() function against first parameter, if an + object. + 2007-09-27 Bastiaan Jacques <[EMAIL PROTECTED]> * gui/gtk{.cpp,sup.h}: Introduce addFDListener, which will make the Index: testsuite/actionscript.all/Global.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Global.as,v retrieving revision 1.28 retrieving revision 1.29 diff -u -b -r1.28 -r1.29 --- testsuite/actionscript.all/Global.as 27 Sep 2007 15:42:11 -0000 1.28 +++ testsuite/actionscript.all/Global.as 27 Sep 2007 20:01:16 -0000 1.29 @@ -21,7 +21,7 @@ // compile this test case with Ming makeswf, and then // execute it like this gnash -1 -r 0 -v out.swf -rcsid="$Id: Global.as,v 1.28 2007/09/27 15:42:11 strk Exp $"; +rcsid="$Id: Global.as,v 1.29 2007/09/27 20:01:16 strk Exp $"; #include "check.as" @@ -73,6 +73,8 @@ check ( ! isFinite(1/0) ); check ( ! isNaN(1/0) ); check_equals (parseInt(new String("10")), 10); +o = {}; o.toString = function() { return "12"; }; +check_equals (parseInt(o), 12); // It's not reliable to compare a double type with ==, so we'll give it a // small range using >= and <= _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit