[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/Makefil...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/Makefil... |
Date: |
Wed, 29 Aug 2007 07:41:37 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/08/29 07:41:37
Modified files:
. : ChangeLog
testsuite/misc-swfc.all: Makefile.am
Added files:
testsuite/misc-swfc.all: soft_reference_test1.sc
Log message:
* testsuite/misc-swfc.all/soft_reference_test1.sc: new focused testcase
about soft reference, still got an xcheck.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4144&r2=1.4145
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/Makefile.am?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/soft_reference_test1.sc?cvsroot=gnash&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4144
retrieving revision 1.4145
diff -u -b -r1.4144 -r1.4145
--- ChangeLog 29 Aug 2007 04:30:37 -0000 1.4144
+++ ChangeLog 29 Aug 2007 07:41:36 -0000 1.4145
@@ -1,3 +1,9 @@
+2007-08-29 Zou Lunkai <address@hidden>
+
+ * testsuite/misc-swfc.all/soft_reference_test1.sc: new focused
+ testcase about soft reference, still got an xcheck.
+ * testsuite/misc-swfc.all/Makefile.am: enable testcase.
+
2007-08-29 Chad Musick <address@hidden>
* server/asobj/BlurFilter_as.cpp,.h
Index: testsuite/misc-swfc.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- testsuite/misc-swfc.all/Makefile.am 20 Aug 2007 23:36:16 -0000 1.4
+++ testsuite/misc-swfc.all/Makefile.am 29 Aug 2007 07:41:37 -0000 1.5
@@ -22,6 +22,7 @@
SCTESTS = \
hello.sc \
sound.sc \
+ soft_reference_test1.sc \
$(NULL)
# These will get compiled to SWFs just as above, but will not be executed as a
test
Index: testsuite/misc-swfc.all/soft_reference_test1.sc
===================================================================
RCS file: testsuite/misc-swfc.all/soft_reference_test1.sc
diff -N testsuite/misc-swfc.all/soft_reference_test1.sc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-swfc.all/soft_reference_test1.sc 29 Aug 2007 07:41:37
-0000 1.1
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 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; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+/*
+ * Zou Lunkai, address@hidden
+ *
+ * Tests about soft reference to sprites.
+ *
+ * Description:
+ * frame1: create an movieclip and rename it;
+ * frame2: remove the movieclip;
+ * frame3: re-create an movieclip with the original name.
+ */
+
+
+.flash bbox=200x200 filename="soft_reference_test1.swf" version=6 fps=12
+
+.frame 1
+ .action:
+ #include "Dejagnu.sc"
+
+ //create a movieclip
+ mcRef = this.createEmptyMovieClip("mc", 10);
+ check(typeof(mc)=='movieclip');
+ check(typeof(mcRef)=='movieclip');
+ check(mc == _level0.mc);
+ check(mcRef == _level0.mc);
+
+ //change the "_name" property
+ mc._name = 'changed';
+ .end
+
+.frame 3
+ .action:
+ check(typeof(mc)=='undefined');
+ check(typeof(mcRef)=='movieclip');
+ check(mc == undefined);
+ check(mcRef == _level0.changed);
+
+ // remove the created moiveclip in frame1
+ changed.removeMovieClip();
+ .end
+
+.frame 5
+ .action:
+ check(typeof(mc) == 'undefined');
+ check(typeof(mcRef) == 'movieclip');
+ check(mc == undefined);
+ check(mcRef.valueOf() == null);
+
+ //re-create a movieclip again, mcRef connects to the newly created
movieclip
+ this.createEmptyMovieClip("mc", 20);
+ check(typeof(mc)=='movieclip');
+ check(typeof(mcRef)=='movieclip');
+ check(mc == _level0.mc);
+ xcheck(mcRef == _level0.mc);
+ totals();
+ stop();
+ .end
+
+.end
+