[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash testsuite/actionscript.all/MovieClip.as C...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash testsuite/actionscript.all/MovieClip.as C... |
Date: |
Wed, 11 Apr 2007 08:08:27 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/04/11 08:08:27
Modified files:
testsuite/actionscript.all: MovieClip.as
. : ChangeLog
Log message:
* testsuite/actionscript.all/MovieClip.as: add tests
showing that user-defined event handlers must be handled
differently then placeobject-defined ones. At least
for the sake of duplicating movieclips.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.48&r2=1.49
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2840&r2=1.2841
Patches:
Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -b -r1.48 -r1.49
--- testsuite/actionscript.all/MovieClip.as 10 Apr 2007 21:44:14 -0000
1.48
+++ testsuite/actionscript.all/MovieClip.as 11 Apr 2007 08:08:26 -0000
1.49
@@ -22,7 +22,7 @@
// compile this test case with Ming makeswf, and then
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: MovieClip.as,v 1.48 2007/04/10 21:44:14 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.49 2007/04/11 08:08:26 strk Exp $";
#include "check.as"
@@ -316,13 +316,19 @@
_root.createEmptyMovieClip("original", 61);
_root.original.createEmptyMovieClip("child1", 1);
_root.original._x = 100;
+_root.original.onEnterFrame = function() { };
+_root.original.onRollOver = function() { };
check_equals(typeof(_root.original), 'movieclip');
check_equals(typeof(_root.original.child1), 'movieclip');
check_equals(_root.original._x, 100);
+check_equals(typeof(_root.original.onEnterFrame), 'function');
+check_equals(typeof(_root.original.onRollOver), 'function');
duplicateMovieClip(_root.original, "copy1", 63);
check_equals(typeof(_root.copy1), 'movieclip');
check_equals(typeof(_root.copy1.child1), 'undefined');
+check_equals(typeof(_root.copy1.onEnterFrame), 'undefined');
+xcheck_equals(typeof(_root.copy1.onRollOver), 'undefined');
check_equals(_root.copy1.getDepth(), 63);
check_equals(_root.copy1._x, 100);
#endif // OUTPUT_VERSION >= 6
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2840
retrieving revision 1.2841
diff -u -b -r1.2840 -r1.2841
--- ChangeLog 11 Apr 2007 08:03:32 -0000 1.2840
+++ ChangeLog 11 Apr 2007 08:08:27 -0000 1.2841
@@ -1,5 +1,9 @@
2007-04-11 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/MovieClip.as: add tests
+ showing that user-defined event handlers must be handled
+ differently then placeobject-defined ones. At least
+ for the sake of duplicating movieclips.
* testsuite/misc-ming.all/displaylist_depths_test.c:
Add tests for duplicateMovieClip, _width and cloning
static event handlers.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash testsuite/actionscript.all/MovieClip.as C...,
Sandro Santilli <=