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/targ...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/targ...
Date: Tue, 13 Nov 2007 19:15:26 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/11/13 19:15:26

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

Log message:
        more tests for setTarget, could not reproduce the bug just fixed in 
find_target
        (would need actions defined in Button or statically-placed sprites).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4848&r2=1.4849
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/targetPath.as?cvsroot=gnash&r1=1.6&r2=1.7

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4848
retrieving revision 1.4849
diff -u -b -r1.4848 -r1.4849
--- ChangeLog   13 Nov 2007 19:11:20 -0000      1.4848
+++ ChangeLog   13 Nov 2007 19:15:25 -0000      1.4849
@@ -1,5 +1,8 @@
 2007-11-13 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/targetPath.as: more tests for setTarget,
+         could not reproduce the bug just fixed in find_target
+         (would need actions defined in Button or statically-placed sprites).
        * server/as_environment.cpp (find_target): "/" is the root.
          Fixes bug #21572.
 

Index: testsuite/actionscript.all/targetPath.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/targetPath.as,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- testsuite/actionscript.all/targetPath.as    26 Oct 2007 13:03:56 -0000      
1.6
+++ testsuite/actionscript.all/targetPath.as    13 Nov 2007 19:15:26 -0000      
1.7
@@ -20,7 +20,7 @@
  *  Test targetPath tags (0x45)
  */
 
-rcsid="$Id: targetPath.as,v 1.6 2007/10/26 13:03:56 strk Exp $";
+rcsid="$Id: targetPath.as,v 1.7 2007/11/13 19:15:26 strk Exp $";
 
 #include "check.as"
 
@@ -99,6 +99,34 @@
 check_equals(_target, '/');
 setTarget("");
 
+setTarget('mc');
+check_equals(_target, '/mc');
+setTarget("/");
+check_equals(_target, '/');
+
+mc2.onUnload = function()
+{
+       note("Running mc2.onUnload");
+       check_equals(_target, '/');
+       check_equals(mc1, '/');
+       mc1.onUnload = function()
+       {
+               note("Running mc1.onUnload ?");
+               check_equals(_target, '/mc');
+               setTarget('mc1');
+               check_equals(_target, '/mc/mc');
+               setTarget("/");
+               check_equals(_target, '/');
+       };
+};
+
+mc2.removeMovieClip();
+mc1.removeMovieClip();
+
 #endif
 
-totals();
+#if OUTPUT_VERSION < 6
+ totals(6);
+#else
+ totals(11);
+#endif




reply via email to

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