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: Wed, 11 Apr 2007 08:39:30 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/04/11 08:39:30

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

Log message:
        add MovieClip.duplicateMovieClip test.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2841&r2=1.2842
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.49&r2=1.50

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2841
retrieving revision 1.2842
diff -u -b -r1.2841 -r1.2842
--- ChangeLog   11 Apr 2007 08:08:27 -0000      1.2841
+++ ChangeLog   11 Apr 2007 08:39:29 -0000      1.2842
@@ -3,7 +3,8 @@
        * 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.
+         for the sake of duplicating movieclips; add
+         MovieClip.duplicateMovieClip test.
        * testsuite/misc-ming.all/displaylist_depths_test.c:
          Add tests for duplicateMovieClip, _width and cloning
          static event handlers.

Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- testsuite/actionscript.all/MovieClip.as     11 Apr 2007 08:08:26 -0000      
1.49
+++ testsuite/actionscript.all/MovieClip.as     11 Apr 2007 08:39:30 -0000      
1.50
@@ -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.49 2007/04/11 08:08:26 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.50 2007/04/11 08:39:30 strk Exp $";
 
 #include "check.as"
 
@@ -331,6 +331,17 @@
 xcheck_equals(typeof(_root.copy1.onRollOver), 'undefined');
 check_equals(_root.copy1.getDepth(), 63);
 check_equals(_root.copy1._x, 100);
+
+#if OUTPUT_VERSION == 6
+// SWF7 and higher removed duplicateMovieClip method of MovieClip class
+_root.original.duplicateMovieClip("copy2", 64);
+check_equals(typeof(_root.copy2), 'movieclip');
+check_equals(typeof(_root.copy2.child1), 'undefined');
+check_equals(typeof(_root.copy2.onEnterFrame), 'undefined');
+xcheck_equals(typeof(_root.copy2.onRollOver), 'undefined');
+check_equals(_root.copy2.getDepth(), 64);
+check_equals(_root.copy2._x, 100);
+#endif // OUTPUT_VERSION = 6
 #endif // OUTPUT_VERSION >= 6
 
 //----------------------------------------------




reply via email to

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