gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Inhe...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Inhe...
Date: Wed, 12 Sep 2007 11:55:53 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/09/12 11:55:53

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: Inheritance.as 

Log message:
                * testsuite/actionscript.all/Inheritance.as: more tests for 
double
                  inheritance.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4289&r2=1.4290
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Inheritance.as?cvsroot=gnash&r1=1.39&r2=1.40

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4289
retrieving revision 1.4290
diff -u -b -r1.4289 -r1.4290
--- ChangeLog   12 Sep 2007 10:59:58 -0000      1.4289
+++ ChangeLog   12 Sep 2007 11:55:52 -0000      1.4290
@@ -1,3 +1,8 @@
+2007-09-12 Sandro Santilli <address@hidden>
+
+       * testsuite/actionscript.all/Inheritance.as: more tests for double
+         inheritance.
+
 2007-09-12 Benjamin Wolsey <address@hidden>
 
        * gui/gtk.cpp, gui/gui.{cpp,h},server/movie_root{cpp,h}

Index: testsuite/actionscript.all/Inheritance.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Inheritance.as,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -b -r1.39 -r1.40
--- testsuite/actionscript.all/Inheritance.as   12 Sep 2007 10:46:06 -0000      
1.39
+++ testsuite/actionscript.all/Inheritance.as   12 Sep 2007 11:55:53 -0000      
1.40
@@ -21,7 +21,7 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: Inheritance.as,v 1.39 2007/09/12 10:46:06 strk Exp $";
+rcsid="$Id: Inheritance.as,v 1.40 2007/09/12 11:55:53 strk Exp $";
 
 #include "check.as"
 
@@ -205,6 +205,43 @@
 #endif // OUTPUT_VERSION > 5
 check_equals(super, undefined);
 
+function A() {}
+A.prototype.whoami = function() {
+       return "A";
+};
+function B() {}
+B.prototype = new A;
+bo = new B;
+check_equals(bo.whoami(), "A");
+B.prototype.whoami = function() {
+       return super.whoami()+"."+"B";
+};
+#if OUTPUT_VERSION < 6
+ check_equals(bo.whoami(), ".B");
+#else
+ check_equals(bo.whoami(), "A.B");
+#endif
+function C() {}
+C.prototype = new B;
+co = new C;
+#if OUTPUT_VERSION > 6
+ xcheck_equals(co.whoami(), "A.B"); // gnash fails returning undefined.B.B
+#else
+# if OUTPUT_VERSION == 6
+   xcheck_equals(co.whoami(), "A.B.B"); // gnash fails returning .B.B
+# else
+   check_equals(co.whoami(), ".B");
+# endif
+#endif
+C.prototype.whoami = function() {
+       return super.whoami()+"."+"C";
+};
+#if OUTPUT_VERSION > 5
+  xcheck_equals(co.whoami(), "A.B.C"); // gnash fails returning .B.C (SWF6) or 
undefined.B.C (SWF>6)
+#else
+  check_equals(co.whoami(), ".C");
+#endif
+
 //------------------------------------------------
 //
 //------------------------------------------------




reply via email to

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