CVSROOT: /sources/gnash Module name: gnash Changes by: Rob Savoye <rsavoye> 07/12/19 05:42:29
Modified files: testsuite/actionscript.all: SharedObject.as . : ChangeLog Log message: i * testsuite/actionscript.all/SharedObject.as: Test creating a .sol file and reading it back in. This test is still somewhat bogus, as it mostly just makes sure everything exists. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/SharedObject.as?cvsroot=gnash&r1=1.11&r2=1.12 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5216&r2=1.5217 Patches: Index: testsuite/actionscript.all/SharedObject.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/SharedObject.as,v retrieving revision 1.11 retrieving revision 1.12 diff -u -b -r1.11 -r1.12 --- testsuite/actionscript.all/SharedObject.as 29 Sep 2007 16:22:58 -0000 1.11 +++ testsuite/actionscript.all/SharedObject.as 19 Dec 2007 05:42:29 -0000 1.12 @@ -20,7 +20,7 @@ // compile this test case with Ming makeswf, and then // execute it like this gnash -1 -r 0 -v out.swf -rcsid="$Id: SharedObject.as,v 1.11 2007/09/29 16:22:58 strk Exp $"; +rcsid="$Id: SharedObject.as,v 1.12 2007/12/19 05:42:29 rsavoye Exp $"; #include "check.as" @@ -52,5 +52,44 @@ // test the SharedObject::getsize method check_equals (typeof(sharedobjectObj.getSize), 'function'); + +// FIXME: Test code that will soon be a formal test case. +so = SharedObject.getLocal("settings"); + +// Private data +so.name = "Joe"; +so.age = 20; +so.pet = "Dog"; + +// public data that gets written +so.data.gain = 50.0; +so.data.echosuppression = false; +so.data.defaultmicrophone = "/dev/input/mic"; +so.data.defaultcamera = ""; +so.data.defaultklimit = 100.0; +so.data.defaultalways = false; +so.data.crossdomainAllow = true; +so.data.crossdomainAlways = true; +so.data.allowThirdPartyLSOAccess = true; +so.data.localSecPath = ""; +so.data.localSecPathTime = 1.19751160683e+12; + +trace(so.getSize()); +so.flush(); + +newso = SharedObject.getLocal("settings"); +check_equals (typeof(newso), 'object'); +check_equals (typeof(newso.data.gain), 'number'); +check_equals (typeof(newso.data.echosuppression), 'boolean'); +check_equals (typeof(newso.data.defaultmicrophone), 'string'); +check_equals (typeof(newso.data.defaultcamera), 'string'); +check_equals (typeof(newso.data.defaultklimit), 'number'); +check_equals (typeof(newso.data.defaultalways), 'boolean'); +check_equals (typeof(newso.data.crossdomainAllow), 'boolean'); +check_equals (typeof(newso.data.crossdomainAlways), 'boolean'); +check_equals (typeof(newso.data.allowThirdPartyLSOAccess), 'boolean'); +check_equals (typeof(newso.data.localSecPath), 'string'); +check_equals (typeof(newso.data.localSecPathTime), 'number'); + #endif // OUTPUT_VERSION >= 6 totals(); Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.5216 retrieving revision 1.5217 diff -u -b -r1.5216 -r1.5217 --- ChangeLog 19 Dec 2007 05:18:46 -0000 1.5216 +++ ChangeLog 19 Dec 2007 05:42:29 -0000 1.5217 @@ -1,5 +1,9 @@ 2007-12-18 Rob Savoye <[EMAIL PROTECTED]> + * testsuite/actionscript.all/SharedObject.as: Test creating a .sol + file and reading it back in. This test is still somewhat bogus, as + it mostly just makes sure everything exists. + * libamf/sol.h: Add overloaded writeFile with no args that uses only private data. Add accessors for filespec and the object name. _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit