gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r9880: Another test, showing that su


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9880: Another test, showing that success/failure of gnash on the last added
Date: Tue, 30 Sep 2008 16:55:09 -0400
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9880
committer: Sandro Santilli <address@hidden>
branch nick: gnash-head
timestamp: Tue 2008-09-30 16:55:09 -0400
message:
  Another test, showing that success/failure of gnash on the last added
  test is based on the _yscale cache values (while expected result doesn't)
modified:
  testsuite/misc-ming.all/matrix_test.c
=== modified file 'testsuite/misc-ming.all/matrix_test.c'
--- a/testsuite/misc-ming.all/matrix_test.c     2008-09-30 20:34:33 +0000
+++ b/testsuite/misc-ming.all/matrix_test.c     2008-09-30 20:55:09 +0000
@@ -1800,7 +1800,6 @@
 #endif
 
        SWFMovie_nextFrame(mo);
-
        SWFDisplayItem_remove(it);
        it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
        SWFDisplayItem_setMatrix(it, 1, 0, 0, 1, 0, 0); 
@@ -1831,10 +1830,33 @@
        check_equals(mo, "staticmc._xscale", "100");
        check_equals(mo, "staticmc._yscale", "-200");
 
-
-       SWFMovie_nextFrame(mo);
-
-       add_actions(mo, "_root.totals(1048); stop();");
+       SWFMovie_nextFrame(mo);
+       SWFDisplayItem_remove(it);
+       it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
+       SWFDisplayItem_setMatrix(it, 1, 0, 0, -2, 0, 0); 
+       check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-30.05,-60.1 30.05,60.1'");
+       check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0, 
c=0, d=-2, tx=0, ty=0)'");
+       check_equals(mo, "staticmc._rotation", "0");
+       check_equals(mo, "staticmc._xscale", "100");
+       check_equals(mo, "staticmc._yscale", "200");
+
+       add_actions(mo, "staticmc._rotation = -90;"); // change _rotation using 
ActionScript
+       check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-60.1,-30.05 60.1,30.05'");
+       check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=0, b=-1, 
c=-2, d=0, tx=0, ty=0)'");
+       check_equals(mo, "staticmc._rotation", "-90");
+       check_equals(mo, "staticmc._xscale", "100");
+       check_equals(mo, "staticmc._yscale", "200");
+
+       add_actions(mo, "staticmc._rotation = 90;"); // change _rotation using 
ActionScript
+       check_equals(mo, "printBounds(staticmc.getBounds(_root))", 
"'-60.1,-30.05 60.1,30.05'");
+       check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=0, b=1, 
c=2, d=0, tx=0, ty=0)'");
+       check_equals(mo, "staticmc._rotation", "90");
+       check_equals(mo, "staticmc._xscale", "100");
+       check_equals(mo, "staticmc._yscale", "200");
+
+       SWFMovie_nextFrame(mo);
+
+       add_actions(mo, "_root.totals(1063); stop();");
        SWFMovie_nextFrame(mo);        
 
        //Output movie


reply via email to

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