CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 08/01/11 09:37:06
Modified files: testsuite/actionscript.all: LoadVars.as Log message: More improvements in the test CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/LoadVars.as?cvsroot=gnash&r1=1.18&r2=1.19 Patches: Index: LoadVars.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/LoadVars.as,v retrieving revision 1.18 retrieving revision 1.19 diff -u -b -r1.18 -r1.19 --- LoadVars.as 11 Jan 2008 09:24:25 -0000 1.18 +++ LoadVars.as 11 Jan 2008 09:37:06 -0000 1.19 @@ -21,7 +21,7 @@ // compile this test case with Ming makeswf, and then // execute it like this gnash -1 -r 0 -v out.swf -rcsid="$Id: LoadVars.as,v 1.18 2008/01/11 09:24:25 strk Exp $"; +rcsid="$Id: LoadVars.as,v 1.19 2008/01/11 09:37:06 strk Exp $"; #include "check.as" @@ -86,6 +86,10 @@ check (LoadVars.prototype.hasOwnProperty('onData')); xcheck_equals (typeof(loadvarsObj.onData), 'function'); +// test the LoadVars::loaded member +xcheck (!LoadVars.prototype.hasOwnProperty('loaded')); +xcheck_equals (typeof(loadvarsObj.loaded), 'undefined'); + //-------------------------------------------------------------------------- // Test LoadVars::load() //-------------------------------------------------------------------------- @@ -102,9 +106,11 @@ //delete loadvarsObj; // this to test robustness + check_equals (this, loadvarsObj); xcheck_equals(arguments.length, 1); xcheck_equals(typeof(success), 'boolean'); xcheck_equals(success, true); + xcheck_equals(this.loaded, success); check(varsloaded < 3); @@ -126,7 +132,7 @@ // Gnash insists in looking for an ending & char !! xcheck_equals(loadvarsObj['var3'], 'val3\n'); - xcheck_totals(43); + xcheck_totals(50); play(); } @@ -135,6 +141,9 @@ // onData is called once with full parsed content. loadvarsObj.onDataReal = loadvarsObj.onData; loadvarsObj.onData = function(src) { + check_equals (this, loadvarsObj); + check_equals(typeof(this.loaded), 'boolean'); + check_equals(this.loaded, false); check_equals(arguments.length, 1); check_equals(typeof(src), 'string'); check_equals(src.substr(0, 10), 'var1=val1&'); _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit