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/FlashVa...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/FlashVa...
Date: Sat, 26 Jan 2008 12:31:11 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/01/26 12:31:11

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

Log message:
        test that any variable passed trough FlashVars is a string, never an 
object.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5502&r2=1.5503
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/FlashVarsTest.as?cvsroot=gnash&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/FlashVarsTest.html?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.176&r2=1.177

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5502
retrieving revision 1.5503
diff -u -b -r1.5502 -r1.5503
--- ChangeLog   26 Jan 2008 01:24:29 -0000      1.5502
+++ ChangeLog   26 Jan 2008 12:31:10 -0000      1.5503
@@ -1,3 +1,9 @@
+2008-01-26 Sandro Santilli <address@hidden>
+
+       * testsuite/misc-ming.all/: FlashVarsTest.as, FlashVarsTest.html,
+         Makefile.am: test that any variable passed trough FlashVars
+         is a string, never an object.
+
 2008-01-25 Sandro Santilli <address@hidden>
 
        * server/sprite_instance.cpp: send the DATA event, don't just

Index: testsuite/misc-ming.all/FlashVarsTest.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/FlashVarsTest.as,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- testsuite/misc-ming.all/FlashVarsTest.as    26 Jan 2008 11:38:29 -0000      
1.6
+++ testsuite/misc-ming.all/FlashVarsTest.as    26 Jan 2008 12:31:10 -0000      
1.7
@@ -22,7 +22,7 @@
 //
 // execute the movie by passing:
 //     
QueryString="?a=a_in_qstring&q=q_in_qstring&MixCaseQstr=mixQstr&dejagnu.nested=chFvars&_root.fqv=fqQstr"
-//     
FlashVars="&a=a_in_fvars&v=v_in_fvars&MixCaseFvars=mixFvars&dejagnu.nested=chFVars&_root.fqv=fqFVars"
+//     
FlashVars="&a=a_in_fvars&v=v_in_fvars&MixCaseFvars=mixFvars&dejagnu.nested=chFVars&_root.fqv=fqFVars&complex={a:'1',b:2}"
 //
 // QueryString is what appears embedded in the url,
 // FlashVars can be given as an attribute of the <embed> tag
@@ -30,17 +30,11 @@
 //
 // Example:
 //
-// gnash -P 
FlashVars="&a=a_in_fvars&v=v_in_fvars&MixCaseFvars=mixFvars&dejagnu.nested=chFVars&_root.fqv=fqFVars"
+// gnash -P 
FlashVars="&a=a_in_fvars&v=v_in_fvars&MixCaseFvars=mixFvars&dejagnu.nested=chFVars&_root.fqv=fqFVars&complex={a:'1',b:2}"
 //     
"FlashParamTest.swf?a=a_in_qstring&q=q_in_qstring&MixCaseQstr=mixQst&dejagnu.nested=chQstr&_root.fqv=fqFVars"
 //
-// NOTE: the construct above won't work with current Gnash, as query string 
will be considered part of
-//       the filename (fix ?)
-//
 // See FlashVarsTest.html for a way to test with a plugin
 //
-// TODO: test complex FlashVars as in 'complex={a:1, b:2}'
-//       see http://flowplayer.org/documentation/quick+start
-//
 
 note("a="+a);
 note("_root.a="+_root.a);
@@ -71,6 +65,8 @@
 check_equals(typeof(_root.dejagnu.nested), "undefined");
 check_equals(_root['dejagnu.nested'], "chFVars");
 
+check_equals(typeof(_root['complex']), "string");
+
 #if OUTPUT_VERSION < 7
        // The following tests assume target SWF version is < 7
        check_equals(_root.mixcaseqstr, "mixQstr");

Index: testsuite/misc-ming.all/FlashVarsTest.html
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/FlashVarsTest.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- testsuite/misc-ming.all/FlashVarsTest.html  17 Nov 2007 10:09:00 -0000      
1.3
+++ testsuite/misc-ming.all/FlashVarsTest.html  26 Jan 2008 12:31:11 -0000      
1.4
@@ -9,5 +9,5 @@
 
 <embed type="application/x-shockwave-flash"
  
src="FlashVarsTest.swf?a=a_in_qstring&q=q_in_qstring&MixCaseQstr=mixQstr&dejagnu.nested=chFVars&_root.fqv=fqFVars"
- 
FlashVars="&a=a_in_fvars&v=v_in_fvars&MixCaseFvars=mixFvars&dejagnu.nested=chFVars&_root.fqv=fqFVars"
+ 
FlashVars="&a=a_in_fvars&v=v_in_fvars&MixCaseFvars=mixFvars&dejagnu.nested=chFVars&_root.fqv=fqFVars&complex={a:'1',b:2}"
  height="600" width="800">

Index: testsuite/misc-ming.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -b -r1.176 -r1.177
--- testsuite/misc-ming.all/Makefile.am 21 Jan 2008 23:26:51 -0000      1.176
+++ testsuite/misc-ming.all/Makefile.am 26 Jan 2008 12:31:11 -0000      1.177
@@ -1468,7 +1468,7 @@
 FlashVarsTest.swf: Dejagnu.swf $(srcdir)/FlashVarsTest.as 
        $(MAKESWF) -DOUTPUT_VERSION=6 -v6 -o $@ Dejagnu.swf 
$(srcdir)/FlashVarsTest.as
 FlashVarsTest-Runner: $(srcdir)/../generic-testrunner.sh FlashVarsTest.swf 
Makefile
-       echo "$(top_builddir)/gui/gnash -1 -r0 -v -P 
'FlashVars=?a=a_in_fvars&v=v_in_fvars&MixCaseFvars=mixFvars&dejagnu.nested=chFVars&_root.fqv=fqFVars'
 
'FlashVarsTest.swf?a=a_in_qstring&q=q_in_qstring&MixCaseQstr=mixQstr&dejagnu.nested=chQstr&_root.fqv=fqQstr'"
 > $@
+       echo "$(top_builddir)/gui/gnash -1 -r0 -v -P 
'FlashVars=?a=a_in_fvars&v=v_in_fvars&MixCaseFvars=mixFvars&dejagnu.nested=chFVars&_root.fqv=fqFVars&complex={a:'1',b:2}'
 
'FlashVarsTest.swf?a=a_in_qstring&q=q_in_qstring&MixCaseQstr=mixQstr&dejagnu.nested=chQstr&_root.fqv=fqQstr'"
 > $@
        chmod 755 $@
 
 init_action_test_SOURCES =     \




reply via email to

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