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


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/action_...
Date: Mon, 12 Feb 2007 10:30:29 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/02/12 10:30:29

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

Log message:
                * testsuite/misc-ming.all/action_execution_order_test.c: made
                  more verbose, reduced frame rate to better see what goes on,
                  don't use C++ comments.

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

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2323
retrieving revision 1.2324
diff -u -b -r1.2323 -r1.2324
--- ChangeLog   12 Feb 2007 09:17:57 -0000      1.2323
+++ ChangeLog   12 Feb 2007 10:30:29 -0000      1.2324
@@ -1,5 +1,8 @@
 2007-02-12 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/action_execution_order_test.c: made
+         more verbose, reduced frame rate to better see what goes on,
+         don't use C++ comments.
        * testsuite/misc-ming.all/Makefile.am: add consecutive_goto_frame_test
          to the 'make check' loop.
        * libbase/utility.h: std::logf => std::log.

Index: testsuite/misc-ming.all/action_execution_order_test.c
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-ming.all/action_execution_order_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/misc-ming.all/action_execution_order_test.c       24 Jan 2007 
23:33:01 -0000      1.2
+++ testsuite/misc-ming.all/action_execution_order_test.c       12 Feb 2007 
10:30:29 -0000      1.3
@@ -24,6 +24,10 @@
  * set a variable with a new value under _root, then set it again under anther 
movieClip.
  *   the variable will only record the later assignment. Checking the final 
result of the
  *   variable will tell us which action(assignment) is executed first.
+ *
+ * Expected result is:
+ *   In the frame placing mc_red,  actions in mc_red is executed *after* 
actions in _root
+ *   In subsequent frames, actions in mc_red is executed *before* actions in 
_root
  */
 
 #include <stdlib.h>
@@ -55,40 +59,40 @@
   Ming_init();
   mo = newSWFMovieWithVersion(OUTPUT_VERSION);
   SWFMovie_setDimension(mo, 800, 600);
-  SWFMovie_setRate (mo, 12.0);
+  SWFMovie_setRate (mo, 1.0);
 
   dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0, 
800, 600);
   SWFMovie_add(mo, (SWFBlock)dejagnuclip);
+  SWFMovie_nextFrame(mo);
 
   
   mc_red = newSWFMovieClip();
   sh_red = make_fill_square (0, 300, 60, 60, 255, 0, 0, 255, 0, 0);
   SWFMovieClip_add(mc_red, (SWFBlock)sh_red);  
-  add_clip_actions(mc_red, " _root.x1 = \"as_in_mc_red\"; ");
-  SWFMovieClip_nextFrame(mc_red);//1st frame
-  add_clip_actions(mc_red, " _root.x2 = \"as_in_mc_red\"; stop(); ");
-  SWFMovieClip_nextFrame(mc_red);//2nd frame
+  add_clip_actions(mc_red, " _root.xtrace('as in frame1 of mc_red'); _root.x1 
= \"as_in_mc_red\"; ");
+  SWFMovieClip_nextFrame(mc_red);/ *1st frame */
+  add_clip_actions(mc_red, " _root.xtrace('as in frame2 of mc_red'); _root.x2 
= \"as_in_mc_red\"; stop(); ");
+  SWFMovieClip_nextFrame(mc_red);/* 2nd frame */
   
-  //add mc_red to _root and name it as "mc_red"
+  /* Add mc_red to _root and name it as "mc_red" */
   SWFDisplayItem it_red;
   it_red = SWFMovie_add(mo, (SWFBlock)mc_red);  
   SWFDisplayItem_setDepth(it_red, 3); 
   SWFDisplayItem_setName(it_red, "mc_red");
   
-  add_actions(mo, " var x1 = \"as_in_root\"; ");
-  SWFMovie_nextFrame(mo); //1st frame
-  add_actions(mo, " _root.x2 = \"as_in_root\"; ");
-  SWFMovie_nextFrame(mo); //2nd frame
+  add_actions(mo, " xtrace('as in frame1 of root'); var x1 = \"as_in_root\"; 
");
+  SWFMovie_nextFrame(mo); /* 1st frame */
+  add_actions(mo, " xtrace('as in frame2 of root'); _root.x2 = \"as_in_root\"; 
");
+  SWFMovie_nextFrame(mo); /* 2nd frame */
 
-  //checks
-  //at 1st frame, actions in mc_red is executed *after* actions in _root
+  /* In the frame placing mc_red,  actions in mc_red is executed *after* 
actions in _root */
   check_equals(mo, "_root.x1", "'as_in_mc_red'");
-  //at 2nd frame, actions in mc_red is executed *before* actions in _root
+  /* In subsequent frames, actions in mc_red is executed *before* actions in 
_root */
   xcheck_equals(mo, "_root.x2", "'as_in_root'");
   add_actions(mo, " _root.totals(); stop(); ");
-  SWFMovie_nextFrame(mo); //3rd frame
+  SWFMovie_nextFrame(mo); /* 3rd frame */
 
-  //Output movie
+  /* Output movie */
   puts("Saving " OUTPUT_FILENAME );
   SWFMovie_save(mo, OUTPUT_FILENAME);
 




reply via email to

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