gnash-commit
[Top][All Lists]
Advanced

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

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


From: Zou Lunkai
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/Makefil...
Date: Tue, 18 Sep 2007 10:30:40 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/09/18 10:30:40

Modified files:
        .              : ChangeLog 
        testsuite/misc-swfc.all: Makefile.am 
Added files:
        testsuite/misc-swfc.all: action_execution_order_test12.sc 

Log message:
        * testsuite/misc-swfc.all/action _execution_order_test12.sc, 
Makefile.am:
          add new testcase, caught an assertion here. Disable it if it blocks 
your
          work.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4340&r2=1.4341
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/Makefile.am?cvsroot=gnash&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/action_execution_order_test12.sc?cvsroot=gnash&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4340
retrieving revision 1.4341
diff -u -b -r1.4340 -r1.4341
--- ChangeLog   18 Sep 2007 09:49:23 -0000      1.4340
+++ ChangeLog   18 Sep 2007 10:30:39 -0000      1.4341
@@ -1,3 +1,9 @@
+2007-09-18 Zou Lunkai <address@hidden>
+
+       * testsuite/misc-swfc.all/action _execution_order_test12.sc, 
Makefile.am:
+         add new testcase, caught an assertion here. Disable it if it blocks 
your
+         work.
+       
 2007-09-18 Sandro Santilli <address@hidden>
 
        * server/sprite_instance.cpp (execute_frame_tags): execute

Index: testsuite/misc-swfc.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/Makefile.am,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- testsuite/misc-swfc.all/Makefile.am 7 Sep 2007 12:25:40 -0000       1.10
+++ testsuite/misc-swfc.all/Makefile.am 18 Sep 2007 10:30:40 -0000      1.11
@@ -28,6 +28,7 @@
        movieclip_destruction_test3.sc \
        movieclip_destruction_test4.sc \
        action_execution_order_test10.sc \
+       action_execution_order_test12.sc \
        $(NULL)
 
 # These will get compiled to SWFs just as above, but will not be executed as a 
test

Index: testsuite/misc-swfc.all/action_execution_order_test12.sc
===================================================================
RCS file: testsuite/misc-swfc.all/action_execution_order_test12.sc
diff -N testsuite/misc-swfc.all/action_execution_order_test12.sc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-swfc.all/action_execution_order_test12.sc    18 Sep 2007 
10:30:40 -0000      1.1
@@ -0,0 +1,183 @@
+/*
+ *   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+ * 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ */ 
+
+/*
+ * Zou Lunkai, address@hidden
+ * 
+ * Test actions execution order.
+ *
+ * movieclips hiberarchy:
+ *
+ *   _root.frame2.mc1;  
+ *   _root.frame2.mc2;  
+ *
+ *     mc1.frame2.mc11
+ *     mc1.frame4.mc12 (mc1 has 4 frames)
+ *
+ *     mc2.frame3.mc21 (mc2 has 3 frames)
+ * 
+ */
+
+
+.flash  bbox=800x600 filename="action_execution_order_test12.swf" 
background=white version=7 fps=12
+
+.frame 1
+  .action:
+   #include "Dejagnu.sc"
+   
+   _root.loadOrder = '0+';
+   _root.enterFrameOrder = '0+';
+   _root.unloadOrder = '0+';
+   _root.asOder = '0+';
+  .end
+  
+  // Define 3 shapes(b1, b2, b3)
+  .box b1 fill=green width=100 height=100
+  .box b2 fill=red width=100 height=100
+  .box b3 fill=yellow width=100 height=100
+  .box b4 fill=blue width=100 height=100
+
+.frame 2
+  
+  .sprite mc11 // Define mc11
+    .frame 1 .put b1
+  .end 
+  
+  .sprite mc12 // Define mc12
+    .frame 1 .put b2
+  .end
+  
+  .sprite mc21 // Define mc21
+    .frame 1 .put b3
+  .end
+  
+  .sprite mc1 // Define mc1
+    .frame 2 .put mc11
+    .frame 4 .put mc12
+  .end
+  
+  .sprite mc2 // Define mc2
+    .frame 3 .put mc21
+  .end
+  
+  
+
+.frame 3
+  .put mc1  // Place mc1
+  .put mc2  // Place mc2
+  
+  
+  .action:
+    mc1.onLoad = function () {
+      _root.loadOrder += '1+';
+    };
+    mc1.onEnterFrame = function () {
+      _root.enterFrameOrder += '2+';
+    };
+    mc1.onUnload = function () {  
+      _root.note('mc1 unloaded');  
+      _root.unloadOrder += '4+';  
+    };
+    
+    mc2.onLoad = function () {
+      _root.loadOrder += '2+';
+    };
+    mc2.onEnterFrame = function () {
+      _root.enterFrameOrder += '1+';
+    };
+    mc2.onUnload = function () {
+      _root.note('mc2 unloaded');
+      _root.unloadOrder += '5+';
+    };
+    
+    check_equals(typeof(mc2), 'movieclip');
+    check_equals(typeof(mc2), 'movieclip');
+    check_equals(typeof(mc1.mc11), 'undefined');
+    check_equals(typeof(mc1.mc12), 'undefined');
+    check_equals(typeof(mc1.mc21), 'undefined');
+  .end
+    
+
+  
+.frame 4
+  .action:
+    mc1.mc11.onLoad = function () {
+      _root.loadOrder += '3+';
+    };
+    mc1.mc11.onEnterFrame = function () {
+      _root.enterFrameOrder += '3+';
+    };
+    mc1.mc11.onUnload = function () {
+      _root.note('mc1.mc11 unloaded');
+      _root.unloadOrder += '2+';
+    };
+    
+    check_equals(typeof(mc1.mc11), 'movieclip');
+    check_equals(typeof(mc1.mc12), 'undefined');
+  .end
+ 
+
+.frame 5
+  .action:
+    mc2.mc21.onLoad = function () {
+      _root.loadOrder += '4+';
+    };
+    mc2.mc21.onEnterFrame = function () {
+      _root.enterFrameOrder += '4+';
+    };
+    mc2.mc21.onUnload = function () {
+     _root.note('mc2.mc21 unloaded');
+      _root.unloadOrder += '1+';
+    };
+    
+    check_equals(typeof(mc2.mc21), 'movieclip');
+    check_equals(typeof(mc1.mc12), 'undefined');
+  .end 
+
+.frame 6
+  .action:
+    mc1.mc12.onLoad = function () {
+      _root.loadOrder += '5+';
+    };
+    mc1.mc12.onEnterFrame = function () {
+      _root.enterFrameOrder += '5+';
+    };
+    mc1.mc12.onUnload = function () {
+       _root.note('mc1.mc12 unloaded');
+      _root.unloadOrder += '3+';
+    };
+    
+    check_equals(typeof(mc1.mc12), 'movieclip');
+  .end 
+  
+  
+.frame 8
+    .del mc1
+    .del mc2
+  .action:
+      check_equals(_root.loadOrder, '0+');
+      check_equals(_root.enterFrameOrder, '0+1+2+3+1+2+3+1+2+1+2+');
+      // mc2.mc21, mc1.mc11 and mc1.mc12 were unloaded when loop back.
+      // mc1 and mc2 were unloaded by RemoveObject2 tags.
+      check_equals(_root.unloadOrder, '0+1+2+3+4+5+');
+    totals();
+    stop();
+  .end
+
+  
+.end // end of the file




reply via email to

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