[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, 04 Apr 2007 09:22:30 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/04/04 09:22:30
Modified files:
. : ChangeLog
testsuite/actionscript.all: array.as
Log message:
* testsuite/actionscript.all/array.as: more tests added.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2775&r2=1.2776
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/array.as?cvsroot=gnash&r1=1.15&r2=1.16
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2775
retrieving revision 1.2776
diff -u -b -r1.2775 -r1.2776
--- ChangeLog 4 Apr 2007 09:02:10 -0000 1.2775
+++ ChangeLog 4 Apr 2007 09:22:30 -0000 1.2776
@@ -1,5 +1,6 @@
2007-04-04 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/array.as: more tests added.
* server/asobj/xml.cpp: remove debugging lines, return undefined
from getBytesLoaded,getBytesTotal if the XML was not loaded.
* server/asobj/xmlnode.cpp: remove debugging lines.
Index: testsuite/actionscript.all/array.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/array.as,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- testsuite/actionscript.all/array.as 28 Mar 2007 14:58:30 -0000 1.15
+++ testsuite/actionscript.all/array.as 4 Apr 2007 09:22:30 -0000 1.16
@@ -5,15 +5,51 @@
// Updated with sort functions, and to use check() macro
// by Mike Carlson Feb. 14th, 2006
-rcsid="$Id: array.as,v 1.15 2007/03/28 14:58:30 strk Exp $";
+rcsid="$Id: array.as,v 1.16 2007/04/04 09:22:30 strk Exp $";
#include "check.as"
+check_equals(typeof(Array), 'function');
+check_equals(typeof(Array.prototype), 'object');
+check_equals(typeof(Array.prototype.concat), 'function');
+check_equals(typeof(Array.prototype.join), 'function');
+check_equals(typeof(Array.prototype.pop), 'function');
+
+check_equals(typeof(Array.prototype.push), 'function');
+check_equals(typeof(Array.prototype.reverse), 'function');
+check_equals(typeof(Array.prototype.shift), 'function');
+check_equals(typeof(Array.prototype.slice), 'function');
+check_equals(typeof(Array.prototype.sort), 'function');
+check_equals(typeof(Array.prototype.sortOn), 'function');
+check_equals(typeof(Array.prototype.splice), 'function');
+check_equals(typeof(Array.prototype.unshift), 'function');
+check_equals(typeof(Array.prototype.toString), 'function');
+check_equals(typeof(Array.prototype.length), 'undefined');
+#if OUTPUT_VERSION >= 6
+check(Array.prototype.hasOwnProperty('concat'));
+check(Array.prototype.hasOwnProperty('join'));
+check(Array.prototype.hasOwnProperty('pop'));
+check(Array.prototype.hasOwnProperty('push'));
+check(Array.prototype.hasOwnProperty('reverse'));
+check(Array.prototype.hasOwnProperty('shift'));
+check(Array.prototype.hasOwnProperty('slice'));
+check(Array.prototype.hasOwnProperty('sort'));
+check(Array.prototype.hasOwnProperty('sortOn'));
+check(Array.prototype.hasOwnProperty('splice'));
+check(Array.prototype.hasOwnProperty('unshift'));
+check(Array.prototype.hasOwnProperty('toString'));
+check(!Array.prototype.hasOwnProperty('length'));
+#endif // OUTPUT_VERSION >= 6
+
var a;
var popped;
a=[551,"asdf",12];
check (a instanceOf Array);
+check_equals(a.length, 3);
+#if OUTPUT_VERSION >= 6
+xcheck(a.hasOwnProperty('length'));
+#endif
b=[];
b.push(551,"asdf",12);
@@ -254,6 +290,9 @@
check_equals(c[8], undefined);
// $Log: array.as,v $
+// Revision 1.16 2007/04/04 09:22:30 strk
+// * testsuite/actionscript.all/array.as: more tests added.
+//
// Revision 1.15 2007/03/28 14:58:30 strk
// * server/array.{cpp,h}: implement Array.splice(),
// improve toString to actually call the user-provided
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/arra...,
Sandro Santilli <=