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 registerclass_tes...


From: Zou Lunkai
Subject: [Gnash-commit] gnash/testsuite/misc-swfc.all registerclass_tes...
Date: Tue, 25 Sep 2007 05:41:46 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/09/25 05:41:46

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

Log message:
        more tests about registerClass

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

Patches:
Index: registerclass_test3.sc
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/registerclass_test3.sc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- registerclass_test3.sc      25 Sep 2007 02:44:27 -0000      1.1
+++ registerclass_test3.sc      25 Sep 2007 05:41:46 -0000      1.2
@@ -35,9 +35,12 @@
 
 
 .frame 2
-  .sprite libItem1 // Define a sprite mc1
+  .sprite libItem1 // Define a sprite libItem1
       .put b1  x=100 y=100
   .end 
+  .sprite libItem2 // Define a sprite libItem2
+      .put b1  x=100 y=200
+  .end 
   
 
 .frame 3
@@ -58,11 +61,22 @@
      // sprite libItem1 never placed.
      check_equals(typeof(libItem1), 'undefined');
   .end
+  .initaction  libItem2:
+     theClass2 = function() { this.testvar = 60;};
+     theClass2.prototype = new MovieClip();
+     Object.registerClass('libItem2', theClass2);
+     
+     // Gnash failed by executing init actions before DLIST tags.
+     xcheck_equals(typeof(libItem2), 'movieclip');
+     xcheck_equals(libItem2.__proto__, MovieClip.prototype);
+  .end
+  
+  .put libItem2
     
     
 .frame 4
   .action:
-    totals(7);
+    totals(8);
     stop();
   .end
 




reply via email to

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