gnash-commit
[Top][All Lists]
Advanced

[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: Wed, 28 Mar 2007 10:52:34 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/03/28 10:52:34

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: Makefile.am 
Added files:
        testsuite/misc-ming.all: FlashVarsTest.as FlashVarsTest.html 

Log message:
                * testsuite/misc-ming.all/: FlashVarsTest.as, 
FlashVarsTest.html,
                  Makefile.am: added a test for querystring and flashparams 
parsing.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2697&r2=1.2698
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.82&r2=1.83
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/FlashVarsTest.as?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/FlashVarsTest.html?cvsroot=gnash&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2697
retrieving revision 1.2698
diff -u -b -r1.2697 -r1.2698
--- ChangeLog   28 Mar 2007 08:59:14 -0000      1.2697
+++ ChangeLog   28 Mar 2007 10:52:34 -0000      1.2698
@@ -1,5 +1,7 @@
 2007-03-28 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/: FlashVarsTest.as, FlashVarsTest.html,
+         Makefile.am: added a test for querystring and flashparams parsing.
        * server/sprite_instance.cpp (loadMovie):
          Parse the querystring given in the URL.
 

Index: testsuite/misc-ming.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -b -r1.82 -r1.83
--- testsuite/misc-ming.all/Makefile.am 24 Mar 2007 12:53:42 -0000      1.82
+++ testsuite/misc-ming.all/Makefile.am 28 Mar 2007 10:52:34 -0000      1.83
@@ -34,7 +34,9 @@
 EXTRA_DIST = VarAndCharClashTest.as \
        KeyTest.as \
        gotoFrame2Test.as \
-       DrawingApiTest.as
+       DrawingApiTest.as \
+       FlashVarsTest.as \
+       FlashVarsTest.html
 
 
 AM_CPPFLAGS = -I.. \
@@ -126,7 +128,8 @@
 
 if MAKESWF_SUPPORTS_PREBUILT_CLIPS
 check_SCRIPTS += VarAndCharClashTest-Runner \
-       gotoFrame2Test-Runner 
+       gotoFrame2Test-Runner \
+       FlashVarsTest-Runner
 endif
 
 # TESTS = \
@@ -679,6 +682,13 @@
        sh $< $(top_builddir) VarAndCharClashTest.swf > $@
        chmod 755 $@
 
+# This will only work with Ming-0.4.0beta2 (support for prebuilt clips 
inclusion)
+FlashVarsTest.swf: ../Dejagnu.swf $(srcdir)/FlashVarsTest.as 
+       $(MAKESWF) -o $@ ../Dejagnu.swf $(srcdir)/FlashVarsTest.as
+FlashVarsTest-Runner: $(srcdir)/../generic-testrunner.sh FlashVarsTest.swf
+       echo "$(top_builddir)/gui/gnash -1 -r0 -v -P 
'FlashVars=?a=a_in_fvars&v=v_in_fvars' 
'FlashVarsTest.swf?a=a_in_qstring&q=q_in_qstring'" > $@
+       chmod 755 $@
+
 intervalTest.swf: $(srcdir)/../media/green.swf ../Dejagnu.swf 
$(srcdir)/intervalTest.as 
        $(MAKESWF) -o $@ ../Dejagnu.swf $(srcdir)/intervalTest.as
 intervalTestRunner_SOURCES = \
@@ -790,6 +800,7 @@
 if MAKESWF_SUPPORTS_PREBUILT_CLIPS
 TEST_CASES += KeyTest-Runner \
        VarAndCharClashTest-Runner \
+       FlashVarsTest-Runner \
        intervalTestRunner \
        gotoFrame2Test-Runner 
 endif

Index: testsuite/misc-ming.all/FlashVarsTest.as
===================================================================
RCS file: testsuite/misc-ming.all/FlashVarsTest.as
diff -N testsuite/misc-ming.all/FlashVarsTest.as
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-ming.all/FlashVarsTest.as    28 Mar 2007 10:52:34 -0000      
1.1
@@ -0,0 +1,55 @@
+// 
+//   Copyright (C) 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 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
+
+// Test case for passing parameters trough FlashVars (-P switch)
+// and url querystring.
+//
+// execute the movie by passing:
+//     QueryString="?a=a_in_qstring&q=q_in_qstring"
+//     FlashVars="?a=a_in_fvars&q=q_in_fvars"
+//
+// QueryString is what appears embedded in the url,
+// FlashVars can be given as an attribute of the <embed> tag
+// of (in Gnash) with the -P switch
+//
+// Example:
+//
+// gnash -P "FlashVars=?a=a_in_fvars&v=v_in_fvars" 
"FlashParamTest.swf?a=a_in_qstring&q=q_in_qstring"
+//
+// See FlashVarsTest.html for a way to test with a plugin
+//
+
+note("a="+a);
+note("_root.a="+_root.a);
+check(_root.hasOwnProperty('a'));
+check_equals(_root.a, "a_in_qstring");
+_root.a="changed";
+check_equals(_root.a, "changed");
+check(delete _root.a);
+
+note("q="+q);
+note("_root.q="+_root.q);
+check(_root.hasOwnProperty('q'));
+check_equals(_root.q, "q_in_qstring");
+
+note("v="+v);
+note("_root.v="+_root.v);
+check(_root.hasOwnProperty('v'));
+check_equals(_root.v, "v_in_fvars");
+
+totals();

Index: testsuite/misc-ming.all/FlashVarsTest.html
===================================================================
RCS file: testsuite/misc-ming.all/FlashVarsTest.html
diff -N testsuite/misc-ming.all/FlashVarsTest.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-ming.all/FlashVarsTest.html  28 Mar 2007 10:52:34 -0000      
1.1
@@ -0,0 +1,11 @@
+<!--
+
+Test case for passing parameters trough FlashVars and url querystring.
+Note that FlashVarsTest.swf must be found in the same directory
+this HTML is in. This file is just here as a reference, isn't used
+by the 'make check' rule. See FlashVarsTest.as for more info.
+
+-->
+
+<embed type="application/x-shockwave-flash" 
src="FlashVarsTest.swf?a=a_in_qstring&q=q_in_qstring" 
FlashVars="&a=a_in_fvars&v=v_in_fvars"
+ height="600" width="800">




reply via email to

[Prev in Thread] Current Thread [Next in Thread]