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/Func...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Func...
Date: Fri, 01 Feb 2008 15:50:00 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/02/01 15:49:59

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

Log message:
        add test for bug #22203.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5547&r2=1.5548
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Function.as?cvsroot=gnash&r1=1.63&r2=1.64

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5547
retrieving revision 1.5548
diff -u -b -r1.5547 -r1.5548
--- ChangeLog   1 Feb 2008 13:09:37 -0000       1.5547
+++ ChangeLog   1 Feb 2008 15:49:59 -0000       1.5548
@@ -1,5 +1,6 @@
 2008-02-01 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/Function.as: add test for bug #22203.
        * server/parser/button_character_def.cpp (read): robustness
          improvement, fixes bug #22200.
        * server/asobj/xmlsocket.cpp (send): fix assertion. Fixes bug #22199.

Index: testsuite/actionscript.all/Function.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Function.as,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -b -r1.63 -r1.64
--- testsuite/actionscript.all/Function.as      27 Dec 2007 02:42:16 -0000      
1.63
+++ testsuite/actionscript.all/Function.as      1 Feb 2008 15:49:59 -0000       
1.64
@@ -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: Function.as,v 1.63 2007/12/27 02:42:16 zoulunkai Exp $";
+rcsid="$Id: Function.as,v 1.64 2008/02/01 15:49:59 strk Exp $";
 
 #include "check.as"
 
@@ -896,4 +896,26 @@
 
 #endif //MING_SUPPORTS_ASM
 
-totals();
+//-----------------------------------------------------------------------------
+// Test that local var names are still declared, even if not passed by caller
+//-----------------------------------------------------------------------------
+
+function inc(a,b)
+{
+       a.count++;
+       b.count++;
+}
+a={count:1}; b={count:1};
+inc(a);
+check_equals(a.count, 2);
+xcheck_equals(b.count, 1); // See bug #22203
+
+#if OUTPUT_VERSION == 5
+ check_totals(146); // SWF5
+#endif
+#if OUTPUT_VERSION == 6
+ check_totals(202); // SWF6
+#endif
+#if OUTPUT_VERSION >= 7
+ check_totals(204); // SWF7,SWF8
+#endif




reply via email to

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