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, 05 Mar 2007 15:03:05 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/03/05 15:03:05

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

Log message:
                * testsuite/misc-ming.all/action_execution_order_extend_test.c:
                  Add onLoad *clip* event and verify that having the clip event
                  defined triggers actual execution of the the onLoad event
                  for it (even the user-defined one!).

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

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2537
retrieving revision 1.2538
diff -u -b -r1.2537 -r1.2538
--- ChangeLog   5 Mar 2007 12:28:22 -0000       1.2537
+++ ChangeLog   5 Mar 2007 15:03:05 -0000       1.2538
@@ -1,5 +1,9 @@
 2007-03-05 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/action_execution_order_extend_test.c:
+         Add onLoad *clip* event and verify that having the clip event
+         defined triggers actual execution of the the onLoad event
+         for it (even the user-defined one!).
        * libgeometry/snappingrange.h: add visit() templated function.
        * server/parser/movie_def_impl.h, server/parser/movie_definition.h:
          Document movie_definition::get_bytes_total().

Index: testsuite/misc-ming.all/action_execution_order_extend_test.c
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-ming.all/action_execution_order_extend_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_extend_test.c        5 Mar 
2007 14:33:27 -0000       1.2
+++ testsuite/misc-ming.all/action_execution_order_extend_test.c        5 Mar 
2007 15:03:05 -0000       1.3
@@ -88,6 +88,10 @@
   it_red = SWFMovie_add(mo, (SWFBlock)mc_red);  
   SWFDisplayItem_setDepth(it_red, 20); 
   SWFDisplayItem_setName(it_red, "mc_red");
+  SWFDisplayItem_addAction(it_red,
+               compileSWFActionCode("note('mc_red clip load executed'); "
+                       "_root.y1bis = 'mc_red onClipLoad called';"),
+               SWFACTION_ONLOAD);
   
   add_actions(mo, " note('as in frame2 of root'); var x1 = \"as_in_root\"; ");
   add_actions(mo, " _root.mc_red.onLoad = function () \
@@ -149,8 +153,9 @@
   check_equals(mo, "_root.x2", "'as_in_root'");
   SWFMovie_nextFrame(mo); /* 4th frame */
   
-  /* mc_red Onload is not called */
-  xcheck_equals(mo, "_root.y1", "undefined");
+  /* mc_red onload is only called IFF onClipEvent(load) is also defined! */
+  check_equals(mo, "_root.y1", "'mc_red onLoad called'");
+  xcheck_equals(mo, "_root.y1bis", "'mc_red onClipLoad called'");
   /* actions in main timeline is executed *after* mc_red.onEnterFrame */
   check_equals(mo, "_root.y2", "'as_in_root'");
   /* actions in main timeline is executed *before* mc_red.onUnload in




reply via email to

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