[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum... |
Date: |
Thu, 21 Jun 2007 02:03:47 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/06/21 02:03:47
Modified files:
. : ChangeLog
Added files:
testsuite/actionscript.all: enumerate.as
Log message:
new testcase, Gnash fails.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3589&r2=1.3590
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/enumerate.as?cvsroot=gnash&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3589
retrieving revision 1.3590
diff -u -b -r1.3589 -r1.3590
--- ChangeLog 20 Jun 2007 14:27:29 -0000 1.3589
+++ ChangeLog 21 Jun 2007 02:03:46 -0000 1.3590
@@ -1,3 +1,7 @@
+2007-06-21 Zou Lunkai <address@hidden>
+
+ * testsuite/actionscript.all/enumerate.as: new testcase, Gnash fails.
+
2007-06-20 Sandro Santilli <address@hidden>
* libbase/GC.{cpp,h}: moved destructor and cleanUnreachable methods
Index: testsuite/actionscript.all/enumerate.as
===================================================================
RCS file: testsuite/actionscript.all/enumerate.as
diff -N testsuite/actionscript.all/enumerate.as
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/actionscript.all/enumerate.as 21 Jun 2007 02:03:47 -0000
1.1
@@ -0,0 +1,61 @@
+ //
+// Copyright (C) 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modchecky
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; check not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fcheckth Floor, Boston, MA 02110-1301
USA
+//
+
+/*
+ * Zou Lunkai, address@hidden
+ *
+ * Test ActionEnumerate/2
+ */
+
+#include "check.as"
+
+#if OUTPUT_VERSION > 5
+
+// Create a recorder and init it.
+recorder = new Array(10);
+for(i=0; i<10; i++){
+ recorder[i] = 0;
+}
+
+// Create six characters
+for(i=0; i<6; i++)
+{
+ _root.createEmptyMovieClip("mc"+i, i+1);
+}
+
+// Use the recorder to record the enumerated results in _root
+i = 0;
+for (var j in _root)
+{
+ recorder[i] = _root[j];
+ i++;
+}
+
+// Test what we got in the above step. Tests show that characters were also
got enumerated!
+// Note: don't use clip names for testing here, the order in enumerating is
not defined.
+// However, the tests bellow are dependent on enumerating order!
+// Since recorder[0] and recorder[1] and recorder[2] might not be movieclips.
+// TODO: find a proper way to test this.
+xcheck_equals(typeof(recorder[3]), 'movieclip');
+xcheck_equals(typeof(recorder[4]), 'movieclip');
+xcheck_equals(typeof(recorder[5]), 'movieclip');
+xcheck_equals(typeof(recorder[6]), 'movieclip');
+xcheck_equals(typeof(recorder[7]), 'movieclip');
+xcheck_equals(typeof(recorder[8]), 'movieclip');
+
+#endif // OUTPUT_VERSION > 5
\ No newline at end of file
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum...,
Zou Lunkai <=