[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/actionscript.all array.as
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/actionscript.all array.as |
Date: |
Wed, 19 Mar 2008 15:51:23 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/03/19 15:51:23
Modified files:
testsuite/actionscript.all: array.as
Log message:
additional minor tests
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/array.as?cvsroot=gnash&r1=1.60&r2=1.61
Patches:
Index: array.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/array.as,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -b -r1.60 -r1.61
--- array.as 19 Mar 2008 14:47:18 -0000 1.60
+++ array.as 19 Mar 2008 15:51:22 -0000 1.61
@@ -19,7 +19,7 @@
// Initial test written by Mike Carlson
-rcsid="$Id: array.as,v 1.60 2008/03/19 14:47:18 strk Exp $";
+rcsid="$Id: array.as,v 1.61 2008/03/19 15:51:22 strk Exp $";
#include "check.as"
check_equals(typeof(Array), 'function');
@@ -1331,6 +1331,16 @@
check_equals(getCalls, 0);
xcheck_equals(setCalls, 1);
+check_equals(a.length, 3);
+ret = a.addProperty('3', get, set);
+check_equals(a.length, 4);
+
+a.length = 3;
+getCalls=0; setCalls=0;
+a.push(2);
+check_equals(getCalls, 0);
+check_equals(setCalls, 0);
+
#endif // OUTPUT_VERSION > 5
@@ -1355,8 +1365,8 @@
check_totals(459);
#else
# if OUTPUT_VERSION < 7
- check_totals(509);
+ check_totals(513);
# else
- check_totals(519);
+ check_totals(523);
# endif
#endif