gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash testsuite/misc-mtasc.all/inheritance.as C...


From: Sandro Santilli
Subject: [Gnash-commit] gnash testsuite/misc-mtasc.all/inheritance.as C...
Date: Thu, 01 Mar 2007 17:20:40 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/03/01 17:20:40

Modified files:
        testsuite/misc-mtasc.all: inheritance.as 
        .              : ChangeLog 

Log message:
        We want this fixed !
        
                * testsuite/misc-mtasc.all/inheritance.as:
                  Add test provided by P T Withington for debugging
                  problems with OpenLaszlo foundation classes.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/inheritance.as?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2508&r2=1.2509

Patches:
Index: testsuite/misc-mtasc.all/inheritance.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/inheritance.as,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- testsuite/misc-mtasc.all/inheritance.as     26 Feb 2007 08:24:34 -0000      
1.1
+++ testsuite/misc-mtasc.all/inheritance.as     1 Mar 2007 17:20:40 -0000       
1.2
@@ -12,11 +12,31 @@
        {
        }
 
+       function test_laszlo_core()
+       {
+               var A = function() { this.constructor = arguments.callee; };
+               A.prototype.test = function () { return true; }
+
+               var B = function () { this.constructor = arguments.callee; }
+
+               B.prototype = new A();
+
+               B.prototype.test = function () {
+                       _root.check( 
this.constructor.prototype.constructor.prototype.test() );
+               }
+
+               var binst = new B();
+               _root.check_equals(typeof(binst), 'object');
+               _root.check_equals(typeof(binst.test), 'function');
+               binst.test();
+       }
+
        function test_all()
        {
                _root.check_equals(typeof(this.loadMovie), 'function');
                _root.check_equals(this.loadMovie, super.loadMovie);
                _root.check(this.lineTo != super.lineTo); // overridden
+               this.test_laszlo_core();
 
        }
 

Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2508
retrieving revision 1.2509
diff -u -b -r1.2508 -r1.2509
--- ChangeLog   1 Mar 2007 11:06:32 -0000       1.2508
+++ ChangeLog   1 Mar 2007 17:20:40 -0000       1.2509
@@ -1,3 +1,9 @@
+2007-03-01 Sandro Santilli <address@hidden>
+
+       * testsuite/misc-mtasc.all/inheritance.as:
+         Add test provided by P T Withington for debugging
+         problems with OpenLaszlo foundation classes.
+
 2007-03-01 Tomas Groth Christensen <address@hidden>
 
        * server/asobj/NetConnection.cpp: Added support for relative path.




reply via email to

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