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: Sat, 15 Mar 2008 13:01:32 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/03/15 13:01:31

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

Log message:
        finally some more failing tests (equivalent to swfdec's
        super-missing-{7,8}.swf)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5931&r2=1.5932
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Inheritance.as?cvsroot=gnash&r1=1.54&r2=1.55

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5931
retrieving revision 1.5932
diff -u -b -r1.5931 -r1.5932
--- ChangeLog   15 Mar 2008 11:34:08 -0000      1.5931
+++ ChangeLog   15 Mar 2008 13:01:30 -0000      1.5932
@@ -1,3 +1,8 @@
+2008-03-15 Sandro Santilli <address@hidden>
+
+       * testsuite/actionscript.all/Inheritance.as: finally some more failing 
+         tests (equivalent to swfdec's super-missing-{7,8}.swf)
+
 2008-03-15 Benjamin Wolsey <address@hidden>
 
        * gui/gnash.cpp: change / add some long options and update help output.

Index: testsuite/actionscript.all/Inheritance.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Inheritance.as,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- testsuite/actionscript.all/Inheritance.as   15 Mar 2008 10:42:08 -0000      
1.54
+++ testsuite/actionscript.all/Inheritance.as   15 Mar 2008 13:01:31 -0000      
1.55
@@ -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.54 2008/03/15 10:42:08 strk Exp $";
+rcsid="$Id: Inheritance.as,v 1.55 2008/03/15 13:01:31 strk Exp $";
 #include "check.as"
 
 check_equals(typeof(Object.prototype.constructor), 'function');
@@ -310,6 +310,31 @@
  check_equals(ActorCalls, 0); 
 #endif
 
+// Now test 'super' at the top of the inheritance chain
+F.prototype.myName = function() { super(); return super.myName()+"F"; };
+FctorCalls=0;
+BctorCalls=0;
+ActorCalls=0;
+n = co.myName();
+#if OUTPUT_VERSION < 6 
+ check_equals(n, "C"); // no super
+ check_equals(FctorCalls, 0); // no super
+ check_equals(BctorCalls, 0); // no super
+ check_equals(ActorCalls, 0); // no super
+#endif
+#if OUTPUT_VERSION == 6 
+ check_equals(co.myName(), "FFFC"); // super in C references F proto 
+ check_equals(FctorCalls, 2); // and all ctors are called twice ?
+ check_equals(BctorCalls, 2); 
+ check_equals(ActorCalls, 2); 
+#endif
+#if OUTPUT_VERSION > 6
+ xcheck_equals(co.myName(), "undefinedFFC");  // gnash gives undefinedFC here
+ xcheck_equals(FctorCalls, 2); // gnash gives 0 here
+ xcheck_equals(BctorCalls, 2); // gnash gives 3 here
+ check_equals(ActorCalls, 0); 
+#endif
+
 //------------------------------------------------
 //
 //------------------------------------------------
@@ -496,7 +521,7 @@
 check(! t4 instanceOf Test5);
 
 #if OUTPUT_VERSION < 6
- check_totals(97); // SWF5
+ check_totals(101); // SWF5
 #else
- check_totals(154); // SWF6,7,8
+ check_totals(158); // SWF6,7,8
 #endif




reply via email to

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