CVSROOT: /sources/gnash Module name: gnash Changes by: Benjamin Wolsey <bwy> 08/01/31 15:23:41
Modified files: . : ChangeLog testsuite/actionscript.all: Math.as Log message: These tests don't break the current version of ming if you have '0.5' rather than '.5', and I assume that is supposed to produce the same byte code. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5538&r2=1.5539 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Math.as?cvsroot=gnash&r1=1.7&r2=1.8 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.5538 retrieving revision 1.5539 diff -u -b -r1.5538 -r1.5539 --- ChangeLog 31 Jan 2008 15:19:05 -0000 1.5538 +++ ChangeLog 31 Jan 2008 15:23:40 -0000 1.5539 @@ -2,6 +2,7 @@ * libbase/rc.cpp: fix write of LCShmKey. * server/asobj/Global.cpp: drop unused header. + * testsuite/actionscript.all/Math.as: restore some tests. 2008-01-31 Sandro Santilli <[EMAIL PROTECTED]> Index: testsuite/actionscript.all/Math.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Math.as,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- testsuite/actionscript.all/Math.as 9 Jan 2008 16:21:39 -0000 1.7 +++ testsuite/actionscript.all/Math.as 31 Jan 2008 15:23:41 -0000 1.8 @@ -17,7 +17,7 @@ // -rcsid="$Id: Math.as,v 1.7 2008/01/09 16:21:39 strk Exp $"; +rcsid="$Id: Math.as,v 1.8 2008/01/31 15:23:41 bwy Exp $"; // Test case for Math ActionScript class // @@ -456,8 +456,8 @@ check_equals (Math.pow(-10,1), -10); check_equals (Math.pow(2, 10), 1024); // These lines make makeswf bomb out. -//check_equals (Math.pow(2, .5).toString(), Math.SQRT2.toString()); -//check_equals (Math.pow(2, -.5).toString(), Math.SQRT1_2.toString()); +check_equals (Math.pow(2, 0.5).toString(), Math.SQRT2.toString()); +check_equals (Math.pow(2, -0.5).toString(), Math.SQRT1_2.toString()); check_equals (Math.pow(-2, 0), 1); check_equals (Math.pow(-2, 1), -2); check_equals (Math.pow(-2, 2), 4); @@ -465,12 +465,12 @@ check_equals (Math.pow(-2, -1), -0.5); check_equals (Math.pow(-2, -2), 0.25); // These lines make makeswf bomb out. -//check_equals (Math.pow(-2, .5).toString(), "NaN"); -//check_equals (Math.pow(-2, -.5).toString(), "NaN"); +check_equals (Math.pow(-2, 0.5).toString(), "NaN"); +check_equals (Math.pow(-2, -0.5).toString(), "NaN"); // End of Math testsuite #if OUTPUT_VERSION <= 6 - check_totals(265); + check_totals(269); #else - check_totals(274); + check_totals(278); #endif _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit