[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/arra...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/arra... |
Date: |
Wed, 06 Feb 2008 17:00:00 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/02/06 17:00:00
Modified files:
. : ChangeLog
testsuite/actionscript.all: array.as
Log message:
another insane test..
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5578&r2=1.5579
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/array.as?cvsroot=gnash&r1=1.38&r2=1.39
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5578
retrieving revision 1.5579
diff -u -b -r1.5578 -r1.5579
--- ChangeLog 6 Feb 2008 15:36:13 -0000 1.5578
+++ ChangeLog 6 Feb 2008 17:00:00 -0000 1.5579
@@ -1,5 +1,9 @@
2008-02-06 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/array.as: another insane test..
+
+2008-02-06 Sandro Santilli <address@hidden>
+
* server/array.h (sort): sort a copy of elements when using a custom
function, to avoid the custom function invocations to mess with
the container being scanned. Fixes a memory corruption that was
Index: testsuite/actionscript.all/array.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/array.as,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- testsuite/actionscript.all/array.as 6 Feb 2008 15:08:21 -0000 1.38
+++ testsuite/actionscript.all/array.as 6 Feb 2008 17:00:00 -0000 1.39
@@ -18,7 +18,7 @@
// Initial test written by Mike Carlson
-rcsid="$Id: array.as,v 1.38 2008/02/06 15:08:21 strk Exp $";
+rcsid="$Id: array.as,v 1.39 2008/02/06 17:00:00 strk Exp $";
#include "check.as"
@@ -234,6 +234,11 @@
trysortarray.sort( testCmpBogus5 );
xcheck_equals ( trysortarray.length , 0 );
+function testCmpBogus6 (x,y) { trysortarray.pop(); return 1; }
+trysortarray = new Array(1,2,3,4);
+trysortarray.sort( testCmpBogus6 );
+check_equals ( trysortarray.length, 4 );
+xcheck_equals ( trysortarray.toString(), "2,3,4,1" );
//-----------------------------------------------------
@@ -1012,11 +1017,11 @@
#if OUTPUT_VERSION < 6
- check_totals(368);
+ check_totals(370);
#else
# if OUTPUT_VERSION < 7
- check_totals(396);
+ check_totals(398);
# else
- check_totals(403);
+ check_totals(405);
# endif
#endif