gnash-commit
[Top][All Lists]
Advanced

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

Re: [Gnash-commit] gnash/testsuite/misc-ming.all goto_frame_test.c


From: strk
Subject: Re: [Gnash-commit] gnash/testsuite/misc-ming.all goto_frame_test.c
Date: Mon, 29 Jan 2007 09:43:27 +0100

Zou, forgot to mention:
We're manually maintaining the ChangeLog file, you should 
commit it as part of any commit.
I updated it for all your  (3) commits for now, but please
remember for the future.
Thanks !

--strk;

On Mon, Jan 29, 2007 at 02:48:06AM +0000, Zou Lunkai wrote:
> CVSROOT:      /sources/gnash
> Module name:  gnash
> Changes by:   Zou Lunkai <zoulunkai>  07/01/29 02:48:06
> 
> Modified files:
>       testsuite/misc-ming.all: goto_frame_test.c 
> 
> Log message:
>       add checks about the _currentframe property before and after goto_frame 
> actions
> 
> CVSWeb URLs:
> http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/goto_frame_test.c?cvsroot=gnash&r1=1.1&r2=1.2
> 
> Patches:
> Index: goto_frame_test.c
> ===================================================================
> RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/goto_frame_test.c,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -u -b -r1.1 -r1.2
> --- goto_frame_test.c 22 Jan 2007 12:23:47 -0000      1.1
> +++ goto_frame_test.c 29 Jan 2007 02:48:06 -0000      1.2
> @@ -21,8 +21,8 @@
>   *
>   * Test for ActionGotoFrame 
>   *
> - * the root movie has 3 frames which contains another 2-framed movieClip 
> named mc_red.
> - * At _root's 1st frame, tell mc_red to goto frame2 and stop.
> + * the root movie has 4 frames which contains another 3-framed movieClip 
> named mc_red.
> + * At _root's 2st frame, tell mc_red to goto 3rd frame and stop.
>   */
>  
>  #include <stdlib.h>
> @@ -58,28 +58,34 @@
>  
>    dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 
> 0, 800, 600);
>    SWFMovie_add(mo, (SWFBlock)dejagnuclip);
> -
> +  // Add a ShowFrame here, do all checks at later frames!
> +  // This will guarantee all the check-functions are defined before we call 
> them.
> +  SWFMovie_nextFrame(mo); //1st frame
>    
>    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, "var flag = \"action_executed\"; ");
>    SWFMovieClip_nextFrame(mc_red);//1st frame
> -  SWFMovieClip_nextFrame(mc_red);//2nd frame
> +  SWFMovieClip_nextFrame(mc_red);//2st frame
> +  add_clip_actions(mc_red, "var flag = \"action_executed\"; ");
> +  SWFMovieClip_nextFrame(mc_red);//3nd frame
>    
>    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, " mc_red.gotoAndStop(2); ");
> -  SWFMovie_nextFrame(mo); //1st frame
> +  add_actions(mo, " check_equals(mc_red._currentframe, 1);  \
> +                    mc_red.gotoAndStop(3); \
> +                    check_equals(mc_red._currentframe, 3);");
>  
>    SWFMovie_nextFrame(mo); //2nd frame
>  
> +  SWFMovie_nextFrame(mo); //3nd frame
> +
>    //checks
>    xcheck_equals(mo, "_root.mc_red.flag", "'action_executed'");
>    add_actions(mo, " _root.totals(); stop(); ");
> -  SWFMovie_nextFrame(mo); //3rd frame
> +  SWFMovie_nextFrame(mo); //4th frame
>  
>    //Output movie
>    puts("Saving " OUTPUT_FILENAME );
> @@ -87,6 +93,3 @@
>  
>    return 0;
>  }
> -
> -
> -
> 
> 
> _______________________________________________
> Gnash-commit mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gnash-commit

-- 

 ()   ASCII Ribbon Campaign
 /\   Keep it simple! 





reply via email to

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