CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai <zoulunkai> 07/12/18 08:13:00
Modified files: testsuite/misc-ming.all: new_child_in_unload_test.c Log message: test that we can still swap the new dynamic child created within an unloaded parent. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/new_child_in_unload_test.c?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: new_child_in_unload_test.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/new_child_in_unload_test.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- new_child_in_unload_test.c 17 Dec 2007 07:33:26 -0000 1.1 +++ new_child_in_unload_test.c 18 Dec 2007 08:12:59 -0000 1.2 @@ -61,7 +61,6 @@ { SWFMovie mo; SWFMovieClip mc1, mc2, dejagnuclip; - SWFShape sh1, sh2; SWFDisplayItem it1, it2; const char *srcdir="."; @@ -113,6 +112,10 @@ SWFDisplayItem_addAction(it2, newSWFAction( " _root.check_equals(_level0.dyn1Ref.getDepth(), 100);" + " _level0.dyn1Ref.swapDepths(101); " + // Check that we can still swap the new child created in onClipUnload(mc1) + // Note mc1 is already unloaded(this is in mc2.unload). + " _root.check_equals(_level0.dyn1Ref.getDepth(), 101);" ), SWFACTION_UNLOAD); SWFMovie_nextFrame(mo); // frame2 @@ -127,7 +130,7 @@ check_equals(mo, "_root.dyn2testvar", "'executed'"); SWFMovie_nextFrame(mo); // frame4 - add_actions(mo, " _root.totals(6); stop(); "); + add_actions(mo, " _root.totals(7); stop(); "); SWFMovie_nextFrame(mo); // frame5 //Output movie _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit