[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/misc-swfc.all action_execution_...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash/testsuite/misc-swfc.all action_execution_... |
Date: |
Wed, 14 Nov 2007 10:35:43 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/11/14 10:35:43
Modified files:
testsuite/misc-swfc.all: action_execution_order_test10.sc
registerclass_test3.sc
Log message:
add comments about what the tests do.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/action_execution_order_test10.sc?cvsroot=gnash&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/registerclass_test3.sc?cvsroot=gnash&r1=1.4&r2=1.5
Patches:
Index: action_execution_order_test10.sc
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-swfc.all/action_execution_order_test10.sc,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- action_execution_order_test10.sc 13 Nov 2007 12:27:22 -0000 1.10
+++ action_execution_order_test10.sc 14 Nov 2007 10:35:42 -0000 1.11
@@ -36,17 +36,18 @@
* DoAction.
*
* frame8:
- * PlaceObject(mc4), DoInitAction(mc4):
- * - mc4.__proto__ is Object, not MovieClip during init actions
- * - onInitialize(mc4) isn't called
- * - other things to note ?
+ * PlaceObject(mc4), DoInitAction(mc4), DoInitAction(mc5),
PlaceObject(mc5)
+ * - user defined onInitialize(mc4) isn't called
+ * - user defined onInitialize(mc5) isn't called
+ * - user defined onConstruct(mc4) is called
+ * - user defined onConstruct(mc5) is called
*
* Expected behaviour:
- * (1) user defined onContruct should not be triggered.
- * (2) user defined onLoad should not be triggered in this case(when
allEventFlags == zero).
- * (3) If DoAction is before RemoveObject2, then actions in DoAction should
be executed before
+ * (1) user defined onLoad should not be triggered in this case(when
allEventFlags == zero).
+ * (guess: might be a pp bug)
+ * (2) If DoAction is before RemoveObject2, then actions in DoAction should
be executed before
* onUnload, otherwise after onUnload.
- * (4) Frame actions(frameNum>0): first placed last executed.
+ * (3) Frame actions(frameNum>0): first placed last executed.
*
*/
Index: registerclass_test3.sc
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/registerclass_test3.sc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- registerclass_test3.sc 16 Oct 2007 10:23:43 -0000 1.4
+++ registerclass_test3.sc 14 Nov 2007 10:35:43 -0000 1.5
@@ -21,6 +21,12 @@
*
* Test registerClass
*
+ * Description:
+ * frame2: export libItem1, export libItem2
+ * frame3: DoInitAction(libItem1), DoInitAction(libItem2),
PlaceObject(libItem2)
+ * Observed:
+ * the effect of "Object.registerClass('libItem2', theClass2)" is not visible
+ * in DoInitAction(libItem2), but in next frame. Note: there's no
attachMovie for libItem2.
*/
// use swf6 for case sensitiviness
@@ -83,6 +89,7 @@
// Gnash failed by executing init actions before DLIST tags.
xcheck_equals(typeof(libItem2), 'movieclip');
xcheck_equals(libItem2.__proto__, MovieClip.prototype);
+ xcheck_equals(libItem2.__proto__, MovieClip.prototype);
// Childs of libItem2 have also been placed already
// Gnash fails by executing init actions before frame0 tags
@@ -93,7 +100,12 @@
.frame 4
.action:
- totals(10);
+ check_equals(libItem2.__proto__, theClass2.prototype);
+ .end
+
+.frame 5
+ .action:
+ totals(12);
stop();
.end