[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi... |
Date: |
Thu, 05 Apr 2007 17:40:39 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/04/05 17:40:39
Modified files:
. : ChangeLog
testsuite/actionscript.all: MovieClip.as
Log message:
* testsuite/actionscript.all/MovieClip.as: add softreference
test (MovieClip values kept by absolute _target).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2791&r2=1.2792
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.41&r2=1.42
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2791
retrieving revision 1.2792
diff -u -b -r1.2791 -r1.2792
--- ChangeLog 5 Apr 2007 15:04:51 -0000 1.2791
+++ ChangeLog 5 Apr 2007 17:40:39 -0000 1.2792
@@ -1,5 +1,7 @@
2007-04-05 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/MovieClip.as: add softreference
+ test (MovieClip values kept by absolute _target).
* testsuite/actionscript.all/MovieClip.as: fix couple of stack
underruns.
* server/sprite_instance.{cpp,h} (get_frame_number):
Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- testsuite/actionscript.all/MovieClip.as 5 Apr 2007 15:03:50 -0000
1.41
+++ testsuite/actionscript.all/MovieClip.as 5 Apr 2007 17:40:39 -0000
1.42
@@ -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.41 2007/04/05 15:03:50 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.42 2007/04/05 17:40:39 strk Exp $";
#include "check.as"
@@ -221,6 +221,10 @@
check(mc._xmouse != undefined);
check(mc._xscale != undefined);
+//----------------------------------------------
+// Test createEmptyMovieClip
+//----------------------------------------------
+
#if OUTPUT_VERSION >= 6
// Test movieclip creation
var mc2 = createEmptyMovieClip("mc2_mc", 50, 0, 0, 0);
@@ -269,6 +273,28 @@
check_equals(mc5._parent, mc4);
#endif
+//--------------------------------------------------------------------------
+// Test "soft" references
+// See: // http://thread.gmane.org/gmane.comp.web.flashcoders.devel/84030
+//--------------------------------------------------------------------------
+
+#if OUTPUT_VERSION >= 6
+softref = _root.createEmptyMovieClip("hardref", 60);
+check_equals(typeof(hardref), 'movieclip');
+check_equals(typeof(softref), 'movieclip');
+softref.member = 1;
+check_equals(typeof(softref.member), 'number');
+check_equals(softref.member, 1);
+removeMovieClip(hardref); // use the _global removeMovieClip !
+xcheck_equals(typeof(hardref), 'undefined');
+check_equals(typeof(softref), 'movieclip');
+xcheck_equals(typeof(softref.member), 'undefined');
+_root.createEmptyMovieClip("hardref", 60);
+hardref.member = 2;
+check_equals(typeof(softref.member), 'number');
+check_equals(softref.member, 2);
+#endif // OUTPUT_VERSION >= 6
+
//----------------------------------------------
// Test timeline variables
//----------------------------------------------
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi...,
Sandro Santilli <=
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi..., Sandro Santilli, 2007/04/06
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi..., Sandro Santilli, 2007/04/11
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi..., Sandro Santilli, 2007/04/11
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi..., Sandro Santilli, 2007/04/19
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi..., Zou Lunkai, 2007/04/20
- Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi..., strk, 2007/04/20
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi..., Zou Lunkai, 2007/04/20