CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/11/29 10:47:01
Modified files: . : ChangeLog testsuite/misc-mtasc.all: Dejagnu.as level5.as level99.as Log message: misc-mtasc.all/Dejagnu.as: print info message on successes too. Test swapDepth and removeMovieClip effects on levels (gnash fails). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5014&r2=1.5015 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/Dejagnu.as?cvsroot=gnash&r1=1.5&r2=1.6 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/level5.as?cvsroot=gnash&r1=1.6&r2=1.7 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/level99.as?cvsroot=gnash&r1=1.6&r2=1.7 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.5014 retrieving revision 1.5015 diff -u -b -r1.5014 -r1.5015 --- ChangeLog 29 Nov 2007 09:31:02 -0000 1.5014 +++ ChangeLog 29 Nov 2007 10:47:00 -0000 1.5015 @@ -1,5 +1,11 @@ 2007-11-29 Sandro Santilli <[EMAIL PROTECTED]> + * testsuite/misc-mtasc.all/Dejagnu.as: print info message on successes too. + * testsuite/misc-mtasc.all/: level5.as, level99.as: test swapDepth and + removeMovieClip effects on levels (gnash fails). + +2007-11-29 Sandro Santilli <[EMAIL PROTECTED]> + * server/movie_root.cpp: add staticDepthOffset to _level# movies. * server/character.{cpp,h}: get target right for _level# now that we encode staticDepthOffset-modified depth. Index: testsuite/misc-mtasc.all/Dejagnu.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/Dejagnu.as,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- testsuite/misc-mtasc.all/Dejagnu.as 29 Nov 2007 09:09:13 -0000 1.5 +++ testsuite/misc-mtasc.all/Dejagnu.as 29 Nov 2007 10:47:00 -0000 1.6 @@ -107,7 +107,7 @@ static function check_equals(obt, exp, msg) { if(msg == null) msg = ""; if ( obt == exp ) - pass(obt+' == '+exp); + pass(obt+' == '+exp+' '+msg); else fail('expected: "'+exp+'" , obtained: "'+obt+'" '+msg); } @@ -115,7 +115,7 @@ static function xcheck_equals(obt, exp, msg) { if(msg == null) msg = ""; if ( obt == exp ) - xpass(obt+' == '+exp); + xpass(obt+' == '+exp+' '+msg); else xfail('expected: '+exp+' , obtained: '+obt+" "+msg); } Index: testsuite/misc-mtasc.all/level5.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/level5.as,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- testsuite/misc-mtasc.all/level5.as 29 Nov 2007 09:31:03 -0000 1.6 +++ testsuite/misc-mtasc.all/level5.as 29 Nov 2007 10:47:00 -0000 1.7 @@ -47,6 +47,11 @@ _level0.testvar2 = true; check_equals(_level0.testvar2, true); + _level5.onUnload = function() + { + check(false); // should not be executed + note("Unloading "+this); + } // load yet another swf getURL("level99.swf","_level"+99); Index: testsuite/misc-mtasc.all/level99.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/level99.as,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- testsuite/misc-mtasc.all/level99.as 29 Nov 2007 09:31:03 -0000 1.6 +++ testsuite/misc-mtasc.all/level99.as 29 Nov 2007 10:47:01 -0000 1.7 @@ -51,7 +51,24 @@ _level5.testvar2 = "goodbye"; check_equals(_level5.testvar2, "goodbye"); - check_totals(20); + check_equals(typeof(_level5), 'movieclip'); + var level5ref = _level5; + _level5.swapDepths(10); + xcheck_equals(typeof(_level5), 'undefined'); + check_equals(typeof(level5ref), 'movieclip'); + xcheck_equals(level5ref.getDepth(), '10'); + xcheck_equals(level5ref._target, '_level16394'); + xcheck_equals(typeof(_level16394), 'movieclip'); + + _level16394.removeMovieClip(); + + check_equals(typeof(level5ref), 'movieclip'); + xcheck_equals(typeof(level5ref)._target, 'undefined'); + xcheck_equals(typeof(level5ref.getDepth), 'undefined'); + + check_equals(typeof(_level16364), 'undefined') + + check_totals(30); Dejagnu.done(); } } _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit