gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/matrix_...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/matrix_...
Date: Mon, 16 Apr 2007 08:07:57 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/04/16 08:07:57

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: matrix_test.c 

Log message:
                * testsuite/misc-ming.all/matrix_test.c: add test for skewX() 
matrix
                  (failures are just precision-related).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2882&r2=1.2883
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/matrix_test.c?cvsroot=gnash&r1=1.2&r2=1.3

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2882
retrieving revision 1.2883
diff -u -b -r1.2882 -r1.2883
--- ChangeLog   16 Apr 2007 07:37:08 -0000      1.2882
+++ ChangeLog   16 Apr 2007 08:07:56 -0000      1.2883
@@ -1,5 +1,7 @@
 2007-04-16 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/matrix_test.c: add test for skewX() matrix
+         (failures are just precision-related).
        * server/debugger.{cpp,h}: (matchWatchPoint) const-corrected
        * server/vm/ASHandlers.cpp: always pass an as_environment pointer
          when converting as_value to a string, use to_string rather 

Index: testsuite/misc-ming.all/matrix_test.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/matrix_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/misc-ming.all/matrix_test.c       14 Apr 2007 22:23:05 -0000      
1.2
+++ testsuite/misc-ming.all/matrix_test.c       16 Apr 2007 08:07:56 -0000      
1.3
@@ -136,6 +136,20 @@
        check_equals(mo, "staticmc._width", "212.5");
        check_equals(mo, "staticmc._height", "212.5");
 
+       SWFMovie_nextFrame(mo);        
+
+       SWFDisplayItem_skewX(it, 2);
+
+       check_equals(mo, "staticmc._x", "50");
+       check_equals(mo, "staticmc._y", "300");
+       check_equals(mo, "Math.round(staticmc._xscale)", "447");
+       check_equals(mo, "Math.round(staticmc._yscale)", "300");
+       check_equals(mo, "Math.round(staticmc._rotation*1000)", "18435");
+       check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05 
30.05,30.05'");
+       check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-141.25,193.75 241.25,406.25'");
+       xcheck_equals(mo, "staticmc._width", "382.5");
+       check_equals(mo, "staticmc._height", "212.5");
+
        // TODO:
        // - test more rotations and scales (corner cases too!)
        // - test 'skew' (since Ming supports it)




reply via email to

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