[Top][All Lists]
[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: |
Mon, 24 Sep 2007 07:40:57 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/09/24 07:40:56
Modified files:
. : ChangeLog
testsuite/misc-ming.all: loop_test6.c
Log message:
* testsuite/misc-ming.all/loop_test6.c: Add test for
onClipInitialize
also NOT called when jumping-back to after the character
lifetime.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4383&r2=1.4384
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test6.c?cvsroot=gnash&r1=1.4&r2=1.5
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4383
retrieving revision 1.4384
diff -u -b -r1.4383 -r1.4384
--- ChangeLog 23 Sep 2007 22:33:56 -0000 1.4383
+++ ChangeLog 24 Sep 2007 07:40:56 -0000 1.4384
@@ -1,3 +1,8 @@
+2007-09-24 Sandro Santilli <address@hidden>
+
+ * testsuite/misc-ming.all/loop_test6.c: Add test for onClipInitialize
+ also NOT called when jumping-back to after the character lifetime.
+
2007-09-24 Chad Musick <address@hidden>
* server/namedStrings.h: More documentation,
Index: testsuite/misc-ming.all/loop_test6.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test6.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- testsuite/misc-ming.all/loop_test6.c 1 Jul 2007 10:54:57 -0000
1.4
+++ testsuite/misc-ming.all/loop_test6.c 24 Sep 2007 07:40:56 -0000
1.5
@@ -85,7 +85,7 @@
dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0,
800, 600);
SWFMovie_add(mo, (SWFBlock)dejagnuclip);
- add_actions(mo, "mc1Constructed=0; mc2Constructed=0; mc3Constructed=0;
mc4Constructed=0;");
+ add_actions(mo, "mc1Initialized=0; mc1Constructed=0; mc2Constructed=0;
mc3Constructed=0; mc4Constructed=0;");
SWFMovie_nextFrame(mo);
//
@@ -104,6 +104,10 @@
"_root.note(this+' constructed');"
"_root.mc1Constructed++;"
), SWFACTION_CONSTRUCT);
+ SWFDisplayItem_addAction(it1, newSWFAction(
+ "_root.note(this+' initialized');"
+ "_root.mc1Initialized++;"
+ ), SWFACTION_INIT);
check_equals(mo, "typeof(movieClip1)", "'movieclip'");
check_equals(mo, "_root.mc1Constructed", "1");
@@ -129,6 +133,12 @@
// Gnash fails by calling onClipConstruct again without considering
onClipUnload!!
xcheck_equals(mo, "_root.mc1Constructed", "1");
+ // I'm not sure the above is correct, rather I'd think mc1 is not constructed
+ // agains simply because we're jumping back to a frame that's *after* mc1
+ // was destructed again. We can place an mc2 with an onUnload event to see
+ // what does it change, for now we know onClipInitialize is also invoked
once...
+ xcheck_equals(mo, "_root.mc1Initialized", "1");
+
SWFMovie_add(mo, (SWFBlock)newSWFAction( "totals(); stop();" ));
SWFMovie_nextFrame(mo);
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/loop_te...,
Sandro Santilli <=