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


From: Benjamin Wolsey
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Matr...
Date: Wed, 18 Jun 2008 07:53:48 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Benjamin Wolsey <bwy>   08/06/18 07:53:47

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

Log message:
                * testsuite/actionscript.all/Matrix.as: some tests fail on ming
                  versions below 0.4 beta 6 (confirmed by zou).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6968&r2=1.6969
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Matrix.as?cvsroot=gnash&r1=1.7&r2=1.8

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6968
retrieving revision 1.6969
diff -u -b -r1.6968 -r1.6969
--- ChangeLog   18 Jun 2008 07:15:42 -0000      1.6968
+++ ChangeLog   18 Jun 2008 07:53:46 -0000      1.6969
@@ -1,8 +1,13 @@
 2008-06-18 Benjamin Wolsey <address@hidden>
 
+       * testsuite/actionscript.all/Matrix.as: some tests fail on ming
+         versions below 0.4 beta 6 (confirmed by zou).
+
+2008-06-18 Benjamin Wolsey <address@hidden>
+
        * server/vm/ActionExec.cpp: fix try/catch in functions without using
-         a special case. Also passes the ordinary try tests in swfdec (needed
-         Error too).
+         a special case. Also passes the ordinary try tests in swfdec
+         (needed Error too).
        * server/swfdec/PASSING: three passes in try.
 
 2008-06-17 Markus Gothe <address@hidden>

Index: testsuite/actionscript.all/Matrix.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Matrix.as,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- testsuite/actionscript.all/Matrix.as        10 Jun 2008 16:52:00 -0000      
1.7
+++ testsuite/actionscript.all/Matrix.as        18 Jun 2008 07:53:47 -0000      
1.8
@@ -20,7 +20,7 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: Matrix.as,v 1.7 2008/06/10 16:52:00 bwy Exp $";
+rcsid="$Id: Matrix.as,v 1.8 2008/06/18 07:53:47 bwy Exp $";
 
 
 // There are lots of floating point calculations here. Comparing them
@@ -28,6 +28,8 @@
 // isn't always unreasonable. I've handled the ones that failed for me with
 // an epsilon; others may fail for other people - so please edit as necessary
 // - but it's good to be as accurate as possible.
+//
+// A ming bug up to version 0.4.5 makes very large numbers fail.
 #include "check.as"
 
 #if OUTPUT_VERSION < 8
@@ -109,9 +111,11 @@
 m.scale(4798747e+98, 0.33874983);
 // PP: (a=-6.75183253607854e+107, b=-0.419012258900892, 
c=2.46844592063091e+107, d=-0.505976396967328, tx=1.597982751e+107, 
ty=-96119.3225379726)
 // I get one discrepancy in 'a' here.
+#if MING_VERSION_CODE > 00040005
 check(m.a < -6.7518325360784e+107 && m.a > -6.7518325360786e+107)
-check_equals(m.b.toString(), "-0.419012258900892");
 check_equals(m.c.toString(), "2.46844592063091e+107");
+#endif
+check_equals(m.b.toString(), "-0.419012258900892");
 check_equals(m.d.toString(), "-0.505976396967328");
 check_equals(m.tx.toString(), "1.597982751e+107");
 check_equals(m.ty.toString(), "-96119.3225379726");
@@ -119,13 +123,14 @@
 m.rotate(-1.2873874);
 // PP: (a=-1.888016310255e+107, b=6.48248694618508e+107, 
c=6.9025203664787e+106, d=-2.36997413255563e+107, tx=4.46844242844096e+106, 
ty=-1.53423567131344e+107)
 // tx is slightly different for me.
+#if MING_VERSION_CODE > 00040005
 check_equals(m.a.toString(), "-1.888016310255e+107");
 check_equals(m.b.toString(), "6.48248694618508e+107");
 check_equals(m.c.toString(), "6.9025203664787e+106");
 check_equals(m.d.toString(), "-2.36997413255563e+107");
 check(m.tx < 4.46844242844097e+106 && m.tx > 4.46844242844095e+106)
 check_equals(m.ty.toString(), "-1.53423567131344e+107");
-
+#endif
 
 m1 = new Matrix(8);
 check_equals(m1.toString(), "(a=8, b=undefined, c=undefined, d=undefined, 
tx=undefined, ty=undefined)");
@@ -274,7 +279,10 @@
 //-------------------------------------------------------------
 // END OF TEST
 //-------------------------------------------------------------
-
+#if MING_VERSION_CODE > 00040005
 totals(115);
+#else
+totals(107);
+#endif
 
 #endif // OUTPUT_VERSION >= 8




reply via email to

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