[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil... |
Date: |
Fri, 15 Dec 2006 16:48:57 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/12/15 16:48:57
Modified files:
. : ChangeLog
testsuite/misc-ming.all: Makefile.am
Added files:
testsuite/misc-ming.all: timeline_var_test.c
Log message:
2006-12-14 Sandro Santilli <address@hidden>
* testsuite/misc-ming.all/Makefile.am:
rules for building timeline variable scope
test (missing a test runner!)
2006-12-14 Zou Lunkai <address@hidden>
* testsuite/misc-ming.all/timeline_var_test.c:
testcase for timeline variables scope
(could be turned into a self-contained test!)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1943&r2=1.1944
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.39&r2=1.40
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/timeline_var_test.c?cvsroot=gnash&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1943
retrieving revision 1.1944
diff -u -b -r1.1943 -r1.1944
--- ChangeLog 15 Dec 2006 09:02:48 -0000 1.1943
+++ ChangeLog 15 Dec 2006 16:48:57 -0000 1.1944
@@ -1,5 +1,17 @@
2006-12-14 Sandro Santilli <address@hidden>
+ * testsuite/misc-ming.all/Makefile.am:
+ rules for building timeline variable scope
+ test (missing a test runner!)
+
+2006-12-14 Zou Lunkai <address@hidden>
+
+ * testsuite/misc-ming.all/timeline_var_test.c:
+ testcase for timeline variables scope
+ (could be turned into a self-contained test!)
+
+2006-12-14 Sandro Santilli <address@hidden>
+
* testsuite/actionscript.all/Function.as: fixed for SWF5 target.
2006-12-14 Sandro Santilli <address@hidden>
Index: testsuite/misc-ming.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -b -r1.39 -r1.40
--- testsuite/misc-ming.all/Makefile.am 13 Dec 2006 00:36:41 -0000 1.39
+++ testsuite/misc-ming.all/Makefile.am 15 Dec 2006 16:48:57 -0000 1.40
@@ -44,21 +44,22 @@
check_PROGRAMS = \
- moviecliploader_test \
- definebitsjpeg2 \
+ ButtonEventsTest \
+ ButtonEventsTest-Runner \
DefineEditTextTest \
DefineEditTextVariableNameTest \
DefineEditTextVariableNameTest-Runner \
Dejagnu \
Dejagnu.swf \
- RollOverOutTest-Runner \
- ButtonEventsTest-Runner \
- spritehier \
- RollOverOutTest \
- ButtonEventsTest \
PlaceObject2Test \
RemoveObject2Test \
+ RollOverOutTest \
+ RollOverOutTest-Runner \
VarAndCharClashTest-Runner \
+ definebitsjpeg2 \
+ moviecliploader_test \
+ spritehier \
+ timeline_var_test \
$(NULL)
# TESTS = \
@@ -125,6 +126,16 @@
DefineEditTextVariableNameTest.swf \
$(NULL)
+timeline_var_test_SOURCES = \
+ timeline_var_test.c \
+ ming_utils.h \
+ ming_utils.c \
+ $(NULL)
+timeline_var_test_LDADD = $(MING_LIBS)
+
+timeline_var_test.swf: timeline_var_test
+ ./timeline_var_test
+
spritehier.swf: spritehier
./spritehier
Index: testsuite/misc-ming.all/timeline_var_test.c
===================================================================
RCS file: testsuite/misc-ming.all/timeline_var_test.c
diff -N testsuite/misc-ming.all/timeline_var_test.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-ming.all/timeline_var_test.c 15 Dec 2006 16:48:57 -0000
1.1
@@ -0,0 +1,81 @@
+/***********************************************************************
+ *
+ * Copyright (C) 2005, 2006 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 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; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ *
+ ***********************************************************************
+ * zoulunkai, address@hidden
+ * Test case for variable defined in main timeline:
+ ***********************************************************************/
+
+
+#include <stdio.h>
+#include <ming.h>
+
+#define OUTPUT_FILENAME "timeline_var_test.swf"
+
+
+SWFAction action_in_frame1()
+{
+ SWFAction ac;
+ ac = compileSWFActionCode( "trace(var_at_frame2);" );
+ return ac;
+}
+
+SWFAction action_in_frame2()
+{
+ SWFAction ac;
+ ac = compileSWFActionCode( "var var_at_frame2 =
\"var_defined_at_frame2\";" );
+ return ac;
+}
+
+SWFAction action_in_frame3()
+{
+ SWFAction ac;
+ ac = compileSWFActionCode( "gotoAndStop(1);" );
+ return ac;
+}
+
+int main()
+{
+ SWFMovie movie;
+ SWFAction ac;
+
+
+ Ming_init();
+ movie = newSWFMovie();
+
+ // Add frame ActionScipts to frames
+ ac = action_in_frame1();
+ SWFMovie_add(movie, (SWFBlock)ac);
+ SWFMovie_nextFrame(movie);
+
+ ac = action_in_frame2();
+ SWFMovie_add(movie, (SWFBlock)ac);
+ SWFMovie_nextFrame(movie);
+
+ ac = action_in_frame3();
+ SWFMovie_add(movie, (SWFBlock)ac);
+ SWFMovie_nextFrame(movie);
+
+ //save files
+ puts("Saving " OUTPUT_FILENAME );
+ SWFMovie_save(movie, OUTPUT_FILENAME);
+
+ return 0;
+}
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil..., Sandro Santilli, 2006/12/12
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil...,
Sandro Santilli <=
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil..., Sandro Santilli, 2006/12/18
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil..., Sandro Santilli, 2006/12/18
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil..., Sandro Santilli, 2006/12/21
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil..., Sandro Santilli, 2006/12/22
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil..., Sandro Santilli, 2006/12/26
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil..., Sandro Santilli, 2006/12/27
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil..., Sandro Santilli, 2006/12/30
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil..., Sandro Santilli, 2006/12/30
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil..., Sandro Santilli, 2006/12/31