[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash testsuite/actionscript.all/array.as Chang...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash testsuite/actionscript.all/array.as Chang... |
Date: |
Wed, 19 Mar 2008 08:53:53 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/03/19 08:53:53
Modified files:
testsuite/actionscript.all: array.as
. : ChangeLog
Log message:
test join() on a sparse array
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/array.as?cvsroot=gnash&r1=1.51&r2=1.52
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5969&r2=1.5970
Patches:
Index: testsuite/actionscript.all/array.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/array.as,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -b -r1.51 -r1.52
--- testsuite/actionscript.all/array.as 19 Mar 2008 08:39:30 -0000 1.51
+++ testsuite/actionscript.all/array.as 19 Mar 2008 08:53:52 -0000 1.52
@@ -19,7 +19,7 @@
// Initial test written by Mike Carlson
-rcsid="$Id: array.as,v 1.51 2008/03/19 08:39:30 strk Exp $";
+rcsid="$Id: array.as,v 1.52 2008/03/19 08:53:52 strk Exp $";
#include "check.as"
check_equals(typeof(Array), 'function');
@@ -467,6 +467,21 @@
#endif
//------------------------------------------------------
+// Test Array.join
+//------------------------------------------------------
+
+// join a sparse array
+j = new Array();
+j[1] = 1;
+j[3] = 3;
+s = j.join("^");
+#if OUTPUT_VERSION < 7
+ check_equals(s, "^1^^3");
+#else
+ check_equals(s, "undefined^1^undefined^3");
+#endif
+
+//------------------------------------------------------
// Test Array.concat and Array.slice (TODO: split)
//------------------------------------------------------
@@ -1242,11 +1257,11 @@
#if OUTPUT_VERSION < 6
- check_totals(442);
+ check_totals(443);
#else
# if OUTPUT_VERSION < 7
- check_totals(482);
+ check_totals(483);
# else
- check_totals(492);
+ check_totals(493);
# endif
#endif
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5969
retrieving revision 1.5970
diff -u -b -r1.5969 -r1.5970
--- ChangeLog 19 Mar 2008 08:39:29 -0000 1.5969
+++ ChangeLog 19 Mar 2008 08:53:52 -0000 1.5970
@@ -1,6 +1,7 @@
2008-03-18 Sandro Santilli <address@hidden>
- * testsuite/actionscript.all/array.as: test reverse() on a sparse array.
+ * testsuite/actionscript.all/array.as:
+ test reverse() and join() on a sparse array.
2008-03-18 Benjamin Wolsey <address@hidden>
- [Gnash-commit] gnash testsuite/actionscript.all/array.as Chang...,
Sandro Santilli <=