[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 10:13:39 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/03/19 10:13:39
Modified files:
testsuite/actionscript.all: array.as
. : ChangeLog
Log message:
test access to 'hole' members of sparse arrays
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/array.as?cvsroot=gnash&r1=1.56&r2=1.57
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5973&r2=1.5974
Patches:
Index: testsuite/actionscript.all/array.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/array.as,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -b -r1.56 -r1.57
--- testsuite/actionscript.all/array.as 19 Mar 2008 09:38:31 -0000 1.56
+++ testsuite/actionscript.all/array.as 19 Mar 2008 10:13:38 -0000 1.57
@@ -19,7 +19,7 @@
// Initial test written by Mike Carlson
-rcsid="$Id: array.as,v 1.56 2008/03/19 09:38:31 strk Exp $";
+rcsid="$Id: array.as,v 1.57 2008/03/19 10:13:38 strk Exp $";
#include "check.as"
check_equals(typeof(Array), 'function');
@@ -407,6 +407,15 @@
xcheck_equals(str, "-2147483650: still lower; 2.95147905179353e+20: much too
high; 4294967296: too high; -3: minus three; 1.1: one point one; 3: three; 2:
two; 1: one; 0: zero; ");
+// Getting 'holes' crawls the inheritance chain !
+Array.prototype[3] = 3;
+sparse = new Array();
+sparse[2] = 2;
+check_equals(sparse[3], 3); // crawl inheritance chain !
+sparse[4] = 4;
+check_equals(sparse[3], 3); // crawl inheritance chain !
+delete Array.prototype[3];
+
//-----------------------------------------------------
// Test Array.pop()
//-----------------------------------------------------
@@ -1309,11 +1318,11 @@
#if OUTPUT_VERSION < 6
- check_totals(457);
+ check_totals(459);
#else
# if OUTPUT_VERSION < 7
- check_totals(497);
+ check_totals(499);
# else
- check_totals(507);
+ check_totals(509);
# endif
#endif
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5973
retrieving revision 1.5974
diff -u -b -r1.5973 -r1.5974
--- ChangeLog 19 Mar 2008 09:23:44 -0000 1.5973
+++ ChangeLog 19 Mar 2008 10:13:38 -0000 1.5974
@@ -1,7 +1,7 @@
2008-03-18 Sandro Santilli <address@hidden>
* testsuite/actionscript.all/array.as:
- test splice() on a sparse array.
+ test splice() and members access on a sparse array.
2008-03-19 Benjamin Wolsey <address@hidden>