gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/registe...


From: Zou Lunkai
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/registe...
Date: Tue, 25 Sep 2007 02:44:27 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/09/25 02:44:27

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: registerClassTest2.c 
        testsuite/misc-swfc.all: Makefile.am 
Added files:
        testsuite/misc-swfc.all: registerclass_test3.sc 

Log message:
        * testsuite/misc-ming.all/registerClassTest2.c: one more test.
        * testsuite/misc-swfc.all/register_class_test3.sc, Makefile.am: one 
more testcase.
          all passed.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4396&r2=1.4397
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/registerClassTest2.c?cvsroot=gnash&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/Makefile.am?cvsroot=gnash&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/registerclass_test3.sc?cvsroot=gnash&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4396
retrieving revision 1.4397
diff -u -b -r1.4396 -r1.4397
--- ChangeLog   24 Sep 2007 15:54:28 -0000      1.4396
+++ ChangeLog   25 Sep 2007 02:44:26 -0000      1.4397
@@ -1,4 +1,10 @@
-2007-09-24 Benjamin Wolsey <address@hidden>
+2007-09-25 Zou Lunkai <address@hidden>
+       
+       * testsuite/misc-ming.all/registerClassTest2.c: one more test.
+       * testsuite/misc-swfc.all/register_class_test3.sc, Makefile.am: one 
more testcase.
+         all passed.
+         
+2007-09-25 Benjamin Wolsey <address@hidden>
 
        * gui/gui.cpp: change shortcut keys to lower case restore old
          behaviour.

Index: testsuite/misc-ming.all/registerClassTest2.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/registerClassTest2.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- testsuite/misc-ming.all/registerClassTest2.c        22 Sep 2007 17:32:33 
-0000      1.6
+++ testsuite/misc-ming.all/registerClassTest2.c        25 Sep 2007 02:44:27 
-0000      1.7
@@ -142,17 +142,19 @@
   SWFDisplayItem_addAction(it3,
     newSWFAction(" _root.note('mc3.onClipConstruct'); "
                  " _root.check_equals(typeof(_root.clip3), 'movieclip'); "
-                 // this one is passed by luck at the moment, both are 
undefined for Gnash
+                 " _root.check(_root.clip3.__proto__ != undefined); "
                  " _root.check_equals(_root.clip3.__proto__, 
_root.theClass3.prototype);"
                 ),
     SWFACTION_CONSTRUCT);
 
   // add init actions for mc3
-  add_clip_init_actions(mc3, " _root.note('initactions for mc3'); "
+  add_clip_init_actions(mc3, " _root.note('mc3.initactions'); "
                              " theClass3 = function () {}; "
                              " theClass3.prototype = new MovieClip(); "
                              " Object.registerClass('libItem3', theClass3); "
-                             " _root.attachMovie('libItem3', 'clip3', 30); ");
+                             " _root.attachMovie('libItem3', 'clip3', 30); "
+                             // clip3.__proto__ is initialized before 
executing onClipConstruct
+                             "_root.check_equals(clip3.__proto__, 
_root.theClass3.prototype); ");
   SWFMovieClip_nextFrame(mc3);
   
   add_actions(mo, "totals(); stop();");

Index: testsuite/misc-swfc.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/Makefile.am,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- testsuite/misc-swfc.all/Makefile.am 19 Sep 2007 08:02:15 -0000      1.12
+++ testsuite/misc-swfc.all/Makefile.am 25 Sep 2007 02:44:27 -0000      1.13
@@ -29,6 +29,7 @@
        movieclip_destruction_test4.sc \
        action_execution_order_test10.sc \
        action_execution_order_test12.sc \
+       registerclass_test3.sc \
        edittext_test1.sc \
        $(NULL)
 

Index: testsuite/misc-swfc.all/registerclass_test3.sc
===================================================================
RCS file: testsuite/misc-swfc.all/registerclass_test3.sc
diff -N testsuite/misc-swfc.all/registerclass_test3.sc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-swfc.all/registerclass_test3.sc      25 Sep 2007 02:44:27 
-0000      1.1
@@ -0,0 +1,72 @@
+/*
+ *   Copyright (C) 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 registerClass
+ *
+ */
+
+// use swf6 for case sensitiviness
+.flash  bbox=800x600 filename="registerclass_test3.sc" background=white 
version=6 fps=12
+
+.frame 1
+  .action:
+   #include "Dejagnu.sc"
+  .end
+  
+  .box b1 fill=green width=100 height=100
+
+
+.frame 2
+  .sprite libItem1 // Define a sprite mc1
+      .put b1  x=100 y=100
+  .end 
+  
+
+.frame 3
+  .initaction libItem1:
+     theClass1 = function() { this.testvar = 60;};
+     theClass1.prototype = new MovieClip();
+     Object.registerClass('libItem1', theClass1);
+     
+     _root.attachMovie('libItem1', 'clip1', 10);
+     check_equals(typeof(clip1), 'movieclip');
+     check_equals(clip1.__proto__, theClass1.prototype);
+     
+     clip1.duplicateMovieClip("dup1", 10);
+     check_equals(typeof(dup1), 'movieclip');
+     check_equals(dup1.__proto__, theClass1.prototype);
+     check_equals(dup1.testvar, 60);
+     
+     // sprite libItem1 never placed.
+     check_equals(typeof(libItem1), 'undefined');
+  .end
+    
+    
+.frame 4
+  .action:
+    totals(7);
+    stop();
+  .end
+
+  
+.end // end of the file
+
+




reply via email to

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