CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/11/15 08:20:22
Modified files: . : ChangeLog testsuite/misc-swfc.all: registerclass_test3.sc Log message: Add more tests for registerClass effects visibility. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4866&r2=1.4867 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/registerclass_test3.sc?cvsroot=gnash&r1=1.6&r2=1.7 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.4866 retrieving revision 1.4867 diff -u -b -r1.4866 -r1.4867 --- ChangeLog 15 Nov 2007 08:14:01 -0000 1.4866 +++ ChangeLog 15 Nov 2007 08:20:22 -0000 1.4867 @@ -3,6 +3,8 @@ * testsuite/misc-swfc.all/Dejagnu.sc: make Dejagnu window automatic resize to let text fit in (autoSize). * server/sprite_instance.cpp: cleanup debugging output. + * testsuite/misc-swfc.all/registerclass_test3.sc: add more tests for + registerClass effects visibility. 2007-11-15 Zou Lunkai <[EMAIL PROTECTED]> Index: testsuite/misc-swfc.all/registerclass_test3.sc =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/registerclass_test3.sc,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- testsuite/misc-swfc.all/registerclass_test3.sc 15 Nov 2007 02:59:17 -0000 1.6 +++ testsuite/misc-swfc.all/registerclass_test3.sc 15 Nov 2007 08:20:22 -0000 1.7 @@ -51,6 +51,7 @@ .end .action: + note("root DoAction of frame1"); check_equals(typeof(player.movie), 'movieclip'); check_equals(player.movie.__proto__, logic_Movie.prototype); player.movie.setMovie(); @@ -62,6 +63,12 @@ .put movie=fullDisplay .end + .initaction id141: + note("root first InitAction of frame1 (where we check if object placed after is visible)"); + xcheck_equals(typeof(player.movie), 'movieclip'); + xcheck_equals(player.movie.__proto__, MovieClip.prototype); + .end + // Place sprite id141 and name it as 'player' .put player=id141 @@ -71,6 +78,9 @@ // Define class logic_Movie .initaction _Packages.logic.Movie: + note("root second InitAction of frame1 (where the class is defined)"); + check_equals(typeof(player.movie), 'movieclip'); + check_equals(player.movie.__proto__, MovieClip.prototype); logic_Movie = function() {}; logic_Movie.prototype = new MovieClip(); logic_Movie.prototype.setMovie = function () { _root.testvar = 100; }; @@ -78,6 +88,7 @@ // register sprite player.movie to class logic_Movie .initaction fullDisplay: + note("root third InitAction of frame1 (where registerClass is invoked)"); Object.registerClass("fullDisplay", logic_Movie); .end @@ -147,7 +158,7 @@ .frame 5 .action: - totals(15); + totals(19); stop(); .end _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit