CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 08/01/11 10:58:33
Modified files: testsuite/actionscript.all: LoadVars.as Log message: test LoadVars.loaded can be overridden CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/LoadVars.as?cvsroot=gnash&r1=1.23&r2=1.24 Patches: Index: LoadVars.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/LoadVars.as,v retrieving revision 1.23 retrieving revision 1.24 diff -u -b -r1.23 -r1.24 --- LoadVars.as 11 Jan 2008 10:09:09 -0000 1.23 +++ LoadVars.as 11 Jan 2008 10:58:33 -0000 1.24 @@ -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.23 2008/01/11 10:09:09 strk Exp $"; +rcsid="$Id: LoadVars.as,v 1.24 2008/01/11 10:58:33 strk Exp $"; #include "check.as" @@ -135,14 +135,15 @@ xcheck_equals(typeof(success), 'boolean'); xcheck_equals(success, true); xcheck_equals(this.loaded, success); + check_equals(typeof(this.loaded), 'boolean'); + this.loaded = 5; + xcheck_equals(typeof(this.loaded), 'number'); check(varsloaded < 3); // onLoad is called after all vars have been called check_equals( loadvarsObj.getBytesLoaded(), loadvarsObj.getBytesTotal() ); - check_equals( loadvarsObj.loaded, true ); - //for (var i in _root) { note("_root["+i+"] = "+_root[i]); } if ( varsloaded == 1 ) @@ -156,7 +157,7 @@ // Gnash insists in looking for an ending & char !! xcheck_equals(loadvarsObj['var3'], 'val3\n'); - xcheck_totals(65); + xcheck_totals(66); play(); } _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit