[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/action_...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/action_... |
Date: |
Mon, 24 Sep 2007 07:52:48 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/09/24 07:52:48
Modified files:
. : ChangeLog
testsuite/misc-swfc.all: action_execution_order_test10.sc
Log message:
* testsuite/misc-swfc.all/action_execution_order_test10.sc: found a way
to
trigger user defined onConstruct with swfc.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4384&r2=1.4385
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/action_execution_order_test10.sc?cvsroot=gnash&r1=1.5&r2=1.6
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4384
retrieving revision 1.4385
diff -u -b -r1.4384 -r1.4385
--- ChangeLog 24 Sep 2007 07:40:56 -0000 1.4384
+++ ChangeLog 24 Sep 2007 07:52:47 -0000 1.4385
@@ -1,3 +1,8 @@
+2007-09-24 Zou Lunkai <address@hidden>
+
+ * testsuite/misc-swfc.all/action_execution_order_test10.sc: found a way
to
+ trigger user defined onConstruct with swfc.
+
2007-09-24 Sandro Santilli <address@hidden>
* testsuite/misc-ming.all/loop_test6.c: Add test for onClipInitialize
Index: testsuite/misc-swfc.all/action_execution_order_test10.sc
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-swfc.all/action_execution_order_test10.sc,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- testsuite/misc-swfc.all/action_execution_order_test10.sc 24 Sep 2007
07:11:47 -0000 1.5
+++ testsuite/misc-swfc.all/action_execution_order_test10.sc 24 Sep 2007
07:52:48 -0000 1.6
@@ -153,11 +153,68 @@
_root.as_order1 += "10+";
.end
+ .del mc3 // delete mc3 by RemoveObject2
+
.frame 7
.action:
check_equals(_root.as_order1, '0+1+2+3+4+5+6+7+8+9+10+');
check_equals(_root.as_order2, '0+1+2+3+');
- _root.note(_root.as_order1);
+ .end
+
+
+//
+// seperate tests for user defined onInitialize, onConstruct, onLoad
+//
+.frame 8
+ .sprite mc4
+ .put b4 x=100 y=300
+ .end
+ .sprite mc5
+ .put b4 x=100 y=400
+ .end
+ .put mc4 // PlaceObject2(mc4)
+ .initaction mc4:
+ _root.mc4_onConstruct_executed = false;
+
+ mc4.onInitialize = function () {
+ _root.note("mc4 user defined onInitialize");
+ _root.check(false); // should not be executed
+ };
+ mc4.onConstruct = function() {
+ _root.note("mc4 user defined onConstruct");
+ _root.mc4_onConstruct_executed = true;
+ };
+ mc4.onLoad = function() {
+ _root.note("mc4 user defined onLoad");
+ _root.check(false); // should not be executed
+ };
+ .end
+ .initaction mc5:
+ _root.mc5_onConstruct_executed = false;
+
+ mc5.onInitialize = function () {
+ _root.note("mc5 user defined onInitialize");
+ _root.check(false); // should not be executed
+ };
+ mc5.onConstruct = function() {
+ _root.note("mc5 user defined onConstruct");
+ _root.mc5_onConstruct_executed = true;
+ };
+ mc5.onLoad = function() {
+ _root.note("mc5 user defined onLoad");
+ _root.check(false); // should not be executed
+ };
+ .end
+ .put mc5 // PlaceObject2(mc5)
+
+.frame 9
+ .action:
+ xcheck_equals(mc4_onConstruct_executed, true);
+ xcheck_equals(mc5_onConstruct_executed, true);
+ .end
+
+.frame 15
+ .action:
totals();
stop();
.end