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: Fri, 14 Mar 2008 08:19:54 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/03/14 08:19:54

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

Log message:
        test gaps in the inheritance chain. Gnash fails for SWF>6.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5907&r2=1.5908
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Inheritance.as?cvsroot=gnash&r1=1.50&r2=1.51

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5907
retrieving revision 1.5908
diff -u -b -r1.5907 -r1.5908
--- ChangeLog   14 Mar 2008 06:16:38 -0000      1.5907
+++ ChangeLog   14 Mar 2008 08:19:52 -0000      1.5908
@@ -1,3 +1,8 @@
+2008-03-14 Sandro Santilli <address@hidden>
+
+       * testsuite/actionscript.all/Inheritance.as: test gaps in the
+         inheritance chain. Gnash fails for SWF>6.
+
 2008-03-13 Bastiaan Jacques <address@hidden>
 
        * backend/render_handler_cairo.cpp: Partially implement invalidated

Index: testsuite/actionscript.all/Inheritance.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Inheritance.as,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -b -r1.50 -r1.51
--- testsuite/actionscript.all/Inheritance.as   12 Mar 2008 22:33:07 -0000      
1.50
+++ testsuite/actionscript.all/Inheritance.as   14 Mar 2008 08:19:54 -0000      
1.51
@@ -1,5 +1,5 @@
 // 
-//   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//   Copyright (C) 2005, 2006, 2007, 2008 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
@@ -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.50 2008/03/12 22:33:07 strk Exp $";
+rcsid="$Id: Inheritance.as,v 1.51 2008/03/14 08:19:54 strk Exp $";
 #include "check.as"
 
 check_equals(typeof(Object.prototype.constructor), 'function');
@@ -129,11 +129,7 @@
 
 o1 = new TypeChanger(false);
 check_equals(o1.__proto__, TypeChanger.prototype);
-#if OUTPUT_VERSION > 5
-check_equals(o1.__constructor__, TypeChanger);
-#else
 check_equals(o1.__constructor__, TypeChanger);
-#endif
 check(o1 instanceof TypeChanger);
 check(o1 instanceof Object);
 o2 = new TypeChanger(true);
@@ -250,7 +246,7 @@
 C.prototype = new B;
 co = new C;
 #if OUTPUT_VERSION > 6
- check_equals(co.whoami(), "A.B"); // gnash fails returning A.B.B
+ check_equals(co.whoami(), "A.B"); 
 #else
 # if OUTPUT_VERSION == 6
    check_equals(co.whoami(), "A.B.B"); 
@@ -267,6 +263,19 @@
   check_equals(co.whoami(), ".C");
 #endif
 
+// Test gaps in inheritance chain
+A.prototype.myName = function() { return super.myName()+"A"; };
+C.prototype.myName = function() { return super.myName()+"C"; };
+#if OUTPUT_VERSION < 6 
+ check_equals(co.myName(), "C"); // no super
+#endif
+#if OUTPUT_VERSION == 6 
+ check_equals(co.myName(), "AAC"); // super in C references B proto no matter 
where myName was found
+#endif
+#if OUTPUT_VERSION > 6
+ xcheck_equals(co.myName(), "undefinedAC"); // super in C references the proto 
containing myName (A's)
+#endif
+
 //------------------------------------------------
 //
 //------------------------------------------------
@@ -453,7 +462,7 @@
 check(! t4 instanceOf Test5);
 
 #if OUTPUT_VERSION < 6
- check_totals(89); // SWF5
+ check_totals(90); // SWF5
 #else
- check_totals(146); // SWF6,7,8
+ check_totals(147); // SWF6,7,8
 #endif




reply via email to

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