[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/reverse...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/reverse... |
Date: |
Thu, 05 Apr 2007 07:55:43 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/04/05 07:55:43
Modified files:
. : ChangeLog
testsuite/misc-ming.all: reverse_execute_PlaceObject2_test2.c
Log message:
add more tests for MovieClip events
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2786&r2=1.2787
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/reverse_execute_PlaceObject2_test2.c?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2786
retrieving revision 1.2787
diff -u -b -r1.2786 -r1.2787
--- ChangeLog 5 Apr 2007 07:31:27 -0000 1.2786
+++ ChangeLog 5 Apr 2007 07:55:43 -0000 1.2787
@@ -1,3 +1,8 @@
+2007-04-05 Zou Lunkai <address@hidden>
+
+ * testsuite/misc-ming.all/reverse_execute_PlaceObject2_test2.c
+ add more tests of MovieClip events
+
2007-04-05 Sandro Santilli <address@hidden>
* server/timers.{cpp,h}: drop the as_environment member
Index: testsuite/misc-ming.all/reverse_execute_PlaceObject2_test2.c
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-ming.all/reverse_execute_PlaceObject2_test2.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- testsuite/misc-ming.all/reverse_execute_PlaceObject2_test2.c 5 Apr
2007 07:03:43 -0000 1.1
+++ testsuite/misc-ming.all/reverse_execute_PlaceObject2_test2.c 5 Apr
2007 07:55:43 -0000 1.2
@@ -63,6 +63,7 @@
dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0,
800, 600);
SWFMovie_add(mo, (SWFBlock)dejagnuclip);
+ add_actions(mo, " _root.x1 = ''; _root.x2 = ''; ");
SWFMovie_nextFrame(mo); /* 1st frame */
@@ -75,6 +76,14 @@
SWFDisplayItem it;
it = SWFMovie_add(mo, (SWFBlock)mc);
SWFDisplayItem_setDepth(it, 10);
+
+ SWFDisplayItem_addAction(it,
+ compileSWFActionCode(" _root.x1 += 'onLoad+'; "),
+ SWFACTION_ONLOAD);
+ SWFDisplayItem_addAction(it,
+ compileSWFActionCode(" _root.x2 += 'onUnload+'; "),
+ SWFACTION_UNLOAD);
+
SWFDisplayItem_setName(it, "mc");
check_equals(mo, "_root.mc._x", "0");
SWFMovie_nextFrame(mo); /* 2nd frame */
@@ -95,6 +104,8 @@
SWFMovie_nextFrame(mo); /* 6th frame */
//checks
+ check_equals(mo, "_root.x1", "'onLoad+onLoad+'" );
+ check_equals(mo, "_root.x2", "'onUnload+onUnload+'" );
add_actions(mo, " _root.totals(); stop(); ");
SWFMovie_nextFrame(mo); /* 7th frame */