gnash-commit
[Top][All Lists]
Advanced

[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: Fri, 06 Apr 2007 15:53:25 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/04/06 15:53:24

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: MovieClip.as 

Log message:
                * testsuite/actionscript.all/MovieClip.as: test both
                  ActionRemoveClip and MovieClip.removeMovieClip; also
                  tests that there's no such think as a _global.removeMovieClip.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2799&r2=1.2800
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.46&r2=1.47

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2799
retrieving revision 1.2800
diff -u -b -r1.2799 -r1.2800
--- ChangeLog   6 Apr 2007 15:36:05 -0000       1.2799
+++ ChangeLog   6 Apr 2007 15:53:24 -0000       1.2800
@@ -1,5 +1,8 @@
 2007-04-06 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/MovieClip.as: test both
+         ActionRemoveClip and MovieClip.removeMovieClip; also
+         tests that there's no such think as a _global.removeMovieClip.
        * testsuite/misc-ming.all/displaylist_depths_test.c:
          Add a bunch of new tests about removing from protected
          depth ranges and using swapDepth to move between ranges.

Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -b -r1.46 -r1.47
--- testsuite/actionscript.all/MovieClip.as     6 Apr 2007 11:43:44 -0000       
1.46
+++ testsuite/actionscript.all/MovieClip.as     6 Apr 2007 15:53:24 -0000       
1.47
@@ -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.46 2007/04/06 11:43:44 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.47 2007/04/06 15:53:24 strk Exp $";
 
 #include "check.as"
 
@@ -279,6 +279,11 @@
 // See http://thread.gmane.org/gmane.comp.web.flashcoders.devel/84030
 //--------------------------------------------------------------------------
 
+// There's no such think as a _global.removeMovieClip
+// What is referred to the "global" function does actually
+// resolve to an ActionRemoveClip tag (0.25)
+check_equals(typeof(_global.removeMovieClip), 'undefined');
+
 #if OUTPUT_VERSION >= 6
 
 softref = _root.createEmptyMovieClip("hardref", 60);
@@ -287,10 +292,13 @@
 softref.member = 1;
 check_equals(typeof(softref.member), 'number');
 check_equals(softref.member, 1);
+#if OUTPUT_VERSION > 6
 removeMovieClip(hardref); // using ActionRemoveClip (0x25)
-//_global.removeMovieClip(softref); // using the _global removeMovieClip 
-//hardref.removeMovieClip(); // using the sprite's removeMovieClip 
+#else
+// just to test another way, ActionRemoveClip in SWF6 will work as well
+hardref.removeMovieClip(); // using the sprite's removeMovieClip 
 //softref.removeMovieClip(); // use the softref's removeMovieClip 
+#endif
 check_equals(typeof(hardref), 'undefined');
 check_equals(typeof(softref), 'movieclip');
 check_equals(typeof(softref.member), 'undefined');




reply via email to

[Prev in Thread] Current Thread [Next in Thread]