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


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/loop_te...
Date: Thu, 15 May 2008 08:43:01 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/05/15 08:43:00

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

Log message:
        test no unload event occurs, and actions in first frame of the 
characters
        being swapped are executed only once.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6605&r2=1.6606
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test.c?cvsroot=gnash&r1=1.4&r2=1.5

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6605
retrieving revision 1.6606
diff -u -b -r1.6605 -r1.6606
--- ChangeLog   15 May 2008 08:30:54 -0000      1.6605
+++ ChangeLog   15 May 2008 08:42:56 -0000      1.6606
@@ -1,3 +1,9 @@
+2008-05-15 Sandro Santilli <address@hidden>
+
+       * testsuite/misc-ming.all/loop_test.c: test no unload event occurs,
+         and actions in first frame of the characters being swapped
+         are executed only once.
+
 2008-05-15 Benjamin Wolsey <address@hidden>
 
        * server/asobj/GMath.h: drop all the undefs.

Index: testsuite/misc-ming.all/loop_test.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- testsuite/misc-ming.all/loop_test.c 14 May 2008 16:03:56 -0000      1.4
+++ testsuite/misc-ming.all/loop_test.c 15 May 2008 08:42:59 -0000      1.5
@@ -68,6 +68,10 @@
       "if ( ++runs > 5 )  {"
       "  _root.check_equals(mc1Constructed, 1);"
       "  _root.check_equals(mc2Constructed, 1);"
+      "  _root.check_equals(mc1Unloaded, undefined);"
+      "  _root.check_equals(mc2Unloaded, undefined);"
+      "  _root.check_equals(mc1Executed, 1);"
+      "  _root.check_equals(mc2Executed, 1);"
       "  totals();"
       "  stop();"
       "}"
@@ -109,11 +113,13 @@
   sh1 = make_fill_square (300, 300, 60, 60, 255, 0, 0, 255, 0, 0);
   mc1 = newSWFMovieClip();
   SWFMovieClip_add(mc1, (SWFBlock)sh1); 
+  SWFMovieClip_add(mc1, newSWFAction("_root.mc1Executed++;"));
   SWFMovieClip_nextFrame(mc1);
   
   sh2 = make_fill_square (330, 270, 120, 120, 0, 0, 0, 0, 0, 0);
   mc2 = newSWFMovieClip();
   SWFMovieClip_add(mc2, (SWFBlock)sh2);  
+  SWFMovieClip_add(mc2, newSWFAction("_root.mc2Executed++;"));
   SWFMovieClip_nextFrame(mc2); 
 
   SWFDisplayItem it1, it2;
@@ -122,11 +128,15 @@
   SWFDisplayItem_setName(it1, "movieClip1"); //name movieClip1
   SWFDisplayItem_addAction(it1, newSWFAction("_root.mc1Constructed++;"),
                  SWFACTION_CONSTRUCT);
+  SWFDisplayItem_addAction(it1, newSWFAction("_root.mc1Unloaded++;"),
+                 SWFACTION_UNLOAD);
 
   it2 = SWFMovie_add(mo, (SWFBlock)mc2);  //add movieClip2 to the _root
   SWFDisplayItem_setName(it2, "movieClip2"); //name movieClip2
   SWFDisplayItem_addAction(it2, newSWFAction("_root.mc2Constructed++;"),
                  SWFACTION_CONSTRUCT);
+  SWFDisplayItem_addAction(it2, newSWFAction("_root.mc2Unloaded++;"),
+                 SWFACTION_UNLOAD);
   
   SWFMovie_nextFrame(mo); 
   SWFMovie_nextFrame(mo); 




reply via email to

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