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: Thu, 24 Apr 2008 20:13:33 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/04/24 20:13:33

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

Log message:
                * testsuite/actionscript.all/Inheritance.as:
                  Don't run 'implementsop' tests if Ming doesn't
                  support it. Add a test to ensure we don't
                  choke on circular inheritance.
                * testsuite/actionscript.all/check.as: Ming support
                  for asm "implements" opcode was introduced in
                  0.4.0.beta6

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6387&r2=1.6388
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Inheritance.as?cvsroot=gnash&r1=1.59&r2=1.60
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/check.as?cvsroot=gnash&r1=1.33&r2=1.34

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6387
retrieving revision 1.6388
diff -u -b -r1.6387 -r1.6388
--- ChangeLog   24 Apr 2008 18:29:46 -0000      1.6387
+++ ChangeLog   24 Apr 2008 20:13:31 -0000      1.6388
@@ -1,6 +1,16 @@
 2008-04-24 Sandro Santilli <address@hidden>
 
        * testsuite/actionscript.all/Inheritance.as:
+         Don't run 'implementsop' tests if Ming doesn't
+         support it. Add a test to ensure we don't
+         choke on circular inheritance.
+       * testsuite/actionscript.all/check.as: Ming support
+         for asm "implements" opcode was introduced in 
+         0.4.0.beta6
+
+2008-04-24 Sandro Santilli <address@hidden>
+
+       * testsuite/actionscript.all/Inheritance.as:
          Tests for implementsop (probably need a specific
          Ming version, overlooked it for now).
        * testsuite/misc-mtasc.all/implementsOpTest.as:

Index: testsuite/actionscript.all/Inheritance.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Inheritance.as,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -b -r1.59 -r1.60
--- testsuite/actionscript.all/Inheritance.as   24 Apr 2008 18:29:46 -0000      
1.59
+++ testsuite/actionscript.all/Inheritance.as   24 Apr 2008 20:13:33 -0000      
1.60
@@ -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.59 2008/04/24 18:29:46 strk Exp $";
+rcsid="$Id: Inheritance.as,v 1.60 2008/04/24 20:13:33 strk Exp $";
 #include "check.as"
 
 check_equals(typeof(Object.prototype.constructor), 'function');
@@ -528,6 +528,8 @@
 // Test implements op
 //------------------------------------------------
 
+#ifdef MING_SUPPORTS_ASM_IMPLEMENTS
+
 A = {};
 A.prototype = {}; // need a prototype to set as interface of B.prototype
 B = {};
@@ -555,12 +557,31 @@
 C.prototype = A.prototype;
 xcheck (  ob instanceof C ); 
 
+a = {}; b = {};
+a.__proto__ = b;
+b.__proto__ = a;
+check(!a instanceof b); // really just tests if we survive :)
+
+#endif // MING_SUPPORTS_ASM_IMPLEMENTS
+
 //------------------------------------------------
 // END OF TEST
 //------------------------------------------------
 
 #if OUTPUT_VERSION < 6
- check_totals(106); // SWF5
-#else
- check_totals(163); // SWF6,7,8
+
+# ifdef MING_SUPPORTS_ASM_IMPLEMENTS
+    check_totals(107); 
+# else
+    check_totals(102); 
+# endif
+
+#else // SWF6,7,8
+
+# ifdef MING_SUPPORTS_ASM_IMPLEMENTS
+    check_totals(164);
+# else
+    check_totals(159); 
+# endif
+
 #endif

Index: testsuite/actionscript.all/check.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/check.as,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- testsuite/actionscript.all/check.as 16 Jan 2008 19:31:48 -0000      1.33
+++ testsuite/actionscript.all/check.as 24 Apr 2008 20:13:33 -0000      1.34
@@ -32,6 +32,9 @@
 #   if MING_VERSION_CODE < 00040006
 #     define MING_LOGICAL_ANDOR_BROKEN
 #   endif
+#   if MING_VERSION_CODE >= 00040005
+#     define MING_SUPPORTS_ASM_IMPLEMENTS
+#   endif
 #  endif
 # endif
 #endif




reply via email to

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