CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 08/01/08 22:48:40
Modified files: . : ChangeLog testsuite/misc-mtasc.all: level5.as level87.as level99.as levels.as Log message: add tests to check when do actions in first frame of loaded levels get executed. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5346&r2=1.5347 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/level5.as?cvsroot=gnash&r1=1.10&r2=1.11 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/level87.as?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/level99.as?cvsroot=gnash&r1=1.13&r2=1.14 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/levels.as?cvsroot=gnash&r1=1.5&r2=1.6 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.5346 retrieving revision 1.5347 diff -u -b -r1.5346 -r1.5347 --- ChangeLog 8 Jan 2008 21:53:43 -0000 1.5346 +++ ChangeLog 8 Jan 2008 22:48:39 -0000 1.5347 @@ -1,5 +1,11 @@ 2008-01-08 Sandro Santilli <[EMAIL PROTECTED]> + * testsuite/misc-mtasc.all/: level5.as, level87.as, + level99.as, levels.as: add tests to check when do + actions in first frame of loaded levels get executed. + +2008-01-08 Sandro Santilli <[EMAIL PROTECTED]> + * testsuite/misc-ming.all/: DrawingApiTest.as, DrawingApiTestRunner.cpp: fix test, now the beginFill alpha is correct (couldn't belive we Index: testsuite/misc-mtasc.all/level5.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/level5.as,v retrieving revision 1.10 retrieving revision 1.11 diff -u -b -r1.10 -r1.11 --- testsuite/misc-mtasc.all/level5.as 8 Jan 2008 16:36:55 -0000 1.10 +++ testsuite/misc-mtasc.all/level5.as 8 Jan 2008 22:48:40 -0000 1.11 @@ -28,6 +28,8 @@ { check_equals(mc._currentframe, 1); + xcheck_equals(_level0.frameno, 1); + // Check our depth check_equals(mc.getDepth(), -16379); Index: testsuite/misc-mtasc.all/level87.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/level87.as,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- testsuite/misc-mtasc.all/level87.as 8 Jan 2008 16:46:33 -0000 1.2 +++ testsuite/misc-mtasc.all/level87.as 8 Jan 2008 22:48:40 -0000 1.3 @@ -45,8 +45,6 @@ check_equals(mc._currentframe, 1); - check_equals(_level0._currentframe, 1); - // Check our depth check_equals(mc.getDepth(), -16297); @@ -55,12 +53,16 @@ if (_level0.level87loaded ) { + xcheck_equals(_level0.frameno, 3); + check_equals(typeof(_level5), 'undefined'); return; } _level0.level87loaded = true; + xcheck_equals(_level0.frameno, 2); + // This one fails because gnash is executing code // in level99 before code in the first load of level87, // probably because it is *loading* level99 before level87, Index: testsuite/misc-mtasc.all/level99.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/level99.as,v retrieving revision 1.13 retrieving revision 1.14 diff -u -b -r1.13 -r1.14 --- testsuite/misc-mtasc.all/level99.as 8 Jan 2008 16:46:33 -0000 1.13 +++ testsuite/misc-mtasc.all/level99.as 8 Jan 2008 22:48:40 -0000 1.14 @@ -45,6 +45,8 @@ check_equals(mc._currentframe, 1); + xcheck_equals(_level0.frameno, 2); + // Check our depth check_equals(mc.getDepth(), -16285); @@ -129,7 +131,7 @@ // - sane swapping between to levels, // - swapping & removing _level0 // - check_totals(59); + check_totals(61); Dejagnu.done(); delete this.onEnterFrame; } Index: testsuite/misc-mtasc.all/levels.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/levels.as,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- testsuite/misc-mtasc.all/levels.as 29 Nov 2007 09:31:03 -0000 1.5 +++ testsuite/misc-mtasc.all/levels.as 8 Jan 2008 22:48:40 -0000 1.6 @@ -37,6 +37,11 @@ // The ""+ is there to force conversion to a string check_equals(""+mc, "_level0"); + + mc.onEnterFrame = function () + { + this.frameno++; + } } function run() { _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit