CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/11/23 02:57:49

Modified files:
        testsuite/misc-ming.all: get_frame_number_test.c 

Log message:
        * testsuite/misc-ming.all/get_frame_number_test.c: add tests for 
gotoFrame(0) and    gotoFrame(minus number);
        * server/sprite_instance.cpp: remove TODO item, already checked.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/get_frame_number_test.c?cvsroot=gnash&r1=1.6&r2=1.7

Patches:
Index: get_frame_number_test.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/get_frame_number_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- get_frame_number_test.c     27 Sep 2007 22:20:08 -0000      1.6
+++ get_frame_number_test.c     23 Nov 2007 02:57:48 -0000      1.7
@@ -166,6 +166,12 @@
    */
   add_actions(mo, " gotoAndStop(10000); ");  // ActionGotoFrame
   check_equals(mo, "_currentframe", "7");
+  add_actions(mo, "gotoAndStop(0);"); // ActionGotoFrame
+  check_equals(mo, "_currentframe", "7");
+  add_actions(mo, "x = 0; gotoAndStop(x);"); // ActionGotoExpression
+  check_equals(mo, "_currentframe", "7");
+  add_actions(mo, "x = -1; gotoAndStop(x);"); // ActionGotoExpression
+  check_equals(mo, "_currentframe", "7");
   add_actions(mo, " _root.totals(); stop(); ");
   SWFMovie_nextFrame(mo); /* 7th frame */
 


_______________________________________________
Gnash-commit mailing list
Gnash-commit@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to