gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/testsuite/misc-swfc.all movieclip_destruc...


From: Zou Lunkai
Subject: [Gnash-commit] gnash/testsuite/misc-swfc.all movieclip_destruc...
Date: Tue, 04 Sep 2007 09:27:45 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/09/04 09:27:45

Modified files:
        testsuite/misc-swfc.all: movieclip_destruction_test3.sc 

Log message:
        more tests, seems define the onUnload does not affect anything(actions 
still got skipped)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/movieclip_destruction_test3.sc?cvsroot=gnash&r1=1.1&r2=1.2

Patches:
Index: movieclip_destruction_test3.sc
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-swfc.all/movieclip_destruction_test3.sc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- movieclip_destruction_test3.sc      4 Sep 2007 05:43:56 -0000       1.1
+++ movieclip_destruction_test3.sc      4 Sep 2007 09:27:45 -0000       1.2
@@ -99,11 +99,23 @@
     check_equals(typeof(nestedMovieClip.mc11), 'movieclip');
     check_equals(typeof(nestedMovieClip.mc11.mc111), 'movieclip');
     check_equals(typeof(nestedMovieClip.mc11.mc111.mc1111), 'movieclip');
+  .end
     
+#define DEFINE_ONUNLOAD
+#ifdef DEFINE_ONUNLOAD
+  .action:
     // Define onUnload(for deduction)
-    // nestedMovieClip.onUnload = function () {};
-    // nestedMovieClip.mc11.mc111.mc1111 = function () {};
+     nestedMovieClip.onUnload = function () {};
+     nestedMovieClip.mc11.mc111.onUnload = function () {};
+     nestedMovieClip.mc11.mc111.mc1111.onUnload = function () {};
+  .end
+
+.frame 10
+       .action:
+               // Check 'nestedMovieClip' has unloaded but not destroyed
+                check_equals(nestedMovieClip.getDepth(), -32779);
   .end
+#endif 
 
 .frame 20
   .action:  




reply via email to

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