[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: |
Sat, 29 Sep 2007 05:44:03 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/09/29 05:44:02
Modified files:
. : ChangeLog
testsuite/misc-swfc.all: Makefile.am
Added files:
testsuite/misc-swfc.all: opcode_guard_test2.sc
Log message:
* testsuite/misc-swfc.all/opcode_guard_test2.sc, Makefile.am : test
opcode
guard with setTarget. seems too much actions get discarded than
expected.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4469&r2=1.4470
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/Makefile.am?cvsroot=gnash&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/opcode_guard_test2.sc?cvsroot=gnash&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4469
retrieving revision 1.4470
diff -u -b -r1.4469 -r1.4470
--- ChangeLog 29 Sep 2007 03:27:56 -0000 1.4469
+++ ChangeLog 29 Sep 2007 05:44:02 -0000 1.4470
@@ -3,6 +3,8 @@
* testsuite/actionscript.all/with.as: more tests for setTarget and found
the Dejagnu clip functions might be out of scope chain, and explicitly
targeting also not work.
+ * testsuite/misc-swfc.all/opcode_guard_test2.sc, Makefile.am : test
opcode
+ guard with setTarget. seems too much actions get discarded than
expected.
2007-09-28 Sandro Santilli <address@hidden>
Index: testsuite/misc-swfc.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/Makefile.am,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- testsuite/misc-swfc.all/Makefile.am 25 Sep 2007 02:44:27 -0000 1.13
+++ testsuite/misc-swfc.all/Makefile.am 29 Sep 2007 05:44:02 -0000 1.14
@@ -31,6 +31,7 @@
action_execution_order_test12.sc \
registerclass_test3.sc \
edittext_test1.sc \
+ opcode_guard_test2.sc \
$(NULL)
# These will get compiled to SWFs just as above, but will not be executed as a
test
Index: testsuite/misc-swfc.all/opcode_guard_test2.sc
===================================================================
RCS file: testsuite/misc-swfc.all/opcode_guard_test2.sc
diff -N testsuite/misc-swfc.all/opcode_guard_test2.sc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-swfc.all/opcode_guard_test2.sc 29 Sep 2007 05:44:02
-0000 1.1
@@ -0,0 +1,112 @@
+/*
+ * 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
+ *
+ * test setTarget.
+ */
+
+
+.flash bbox=800x600 filename="opcode_guard_test2.swf" background=white
version=6 fps=12
+
+.frame 1
+ .action:
+ #include "Dejagnu.sc"
+ .end
+
+
+.frame 2
+ .sprite mc1 // Define a sprite
+ .frame 2
+ .action:
+ setTarget('/mc1');
+ _root.gotoAndPlay(5);
+ _root.check(false); // shoudn't be executed
+ setTarget('');
+ .end
+ .end
+ .put mc1 // Place mc1
+
+
+.frame 4
+ .del mc1
+
+.frame 5
+ .sprite mc2 // Define mc2
+ .end
+ .put mc2 // Place mc2
+ .action:
+ mc2.duplicateMovieClip('dup1', 10);
+ mc2.duplicateMovieClip('dup2', 20);
+ mc2.duplicateMovieClip('dup3', 30);
+
+ _root.check_equals(typeof(_root.dup1), 'movieclip');
+ _root.check_equals(typeof(_root.dup2), 'movieclip');
+
+ dup1.testVar = 'dup1_var';
+ setTarget('dup1');
+ removeMovieClip(_root.dup1);
+ // seems Gnash discarded the follow 2 tests
+ _root.check_equals(typeof(_root.dup1), 'undefined');
+ _root.check_equals(testVar, undefined);
+ setTarget('');
+
+ dup2.testVar = 'dup2_var';
+ with('dup2'){
+ removeMovieClip(_root.dup2);
+ // seems Gnash discarded the follow 2 tests
+ _root.check_equals(typeof(_root.dup2), 'undefined');
+ _root.check_equals(testVar, undefined);
+ }
+ .end
+
+
+.frame 6
+ .sprite mc31
+ .action:
+ setTarget('/mc3/mc32');
+ _root.gotoAndPlay(8); // unload it's parent mc3
+ _root.check(false); // shouldn't be executed
+ setTarget('');
+ .end
+ .end
+ .sprite mc32
+ .end
+ .sprite mc3
+ .put mc31
+ .put mc32
+ .end
+ .put mc3
+
+
+.frame 7
+ .del mc3
+
+
+.frame 10
+
+ .action:
+ stop();
+ // Gnash failed on totals() by discarding some checks.
+ // should we have a xtotals()?
+ totals(6);
+ .end
+
+.end // file end
+