CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai <zoulunkai> 07/07/18 05:20:43
Modified files: . : ChangeLog testsuite/misc-ming.all: DefineEditTextTest.c unload_movieclip_test1.c Log message: * testsuite/misc-ming.all/unload_movieclip_test1.c, DefineEditTextTest.c: more tests. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3755&r2=1.3756 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextTest.c?cvsroot=gnash&r1=1.17&r2=1.18 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/unload_movieclip_test1.c?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3755 retrieving revision 1.3756 diff -u -b -r1.3755 -r1.3756 --- ChangeLog 18 Jul 2007 04:01:51 -0000 1.3755 +++ ChangeLog 18 Jul 2007 05:20:43 -0000 1.3756 @@ -1,5 +1,10 @@ 2007-07-18 Zou Lunkai <[EMAIL PROTECTED]> + * testsuite/misc-ming.all/unload_movieclip_test1.c, DefineEditTextTest.c: + more tests. + +2007-07-18 Zou Lunkai <[EMAIL PROTECTED]> + * testsuite/misc-ming.all/Makefile.am, unload_movieclip_test1.c: add a testcase for unloaded movieclips, Gnash fails. Index: testsuite/misc-ming.all/DefineEditTextTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextTest.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -b -r1.17 -r1.18 --- testsuite/misc-ming.all/DefineEditTextTest.c 18 Jul 2007 03:39:13 -0000 1.17 +++ testsuite/misc-ming.all/DefineEditTextTest.c 18 Jul 2007 05:20:43 -0000 1.18 @@ -118,6 +118,13 @@ SWFMovie_add(mo, (SWFBlock)dejagnuclip); SWFMovie_nextFrame(mo); // 1st frame + // checks before placing any swf defined TextField + check(mo, "!TextField.prototype.hasOwnProperty('background')"); + check(mo, "!TextField.prototype.hasOwnProperty('backgroundColor')"); + check(mo, "!TextField.prototype.hasOwnProperty('text')"); + check(mo, "!TextField.prototype.hasOwnProperty('textColor')"); + check(mo, "!TextField.prototype.hasOwnProperty('_alpha')"); + /********************************************* * * Add some textfields @@ -149,7 +156,12 @@ SWFMovie_nextFrame(mo); check_equals(mo, "dtext1.__proto__", "TextField.prototype"); + // checks after placing some swf defined TextField check(mo, "TextField.prototype.hasOwnProperty('background')"); + check(mo, "TextField.prototype.hasOwnProperty('backgroundColor')"); + check(mo, "TextField.prototype.hasOwnProperty('text')"); + check(mo, "TextField.prototype.hasOwnProperty('textColor')"); + check(mo, "TextField.prototype.hasOwnProperty('_alpha')"); check_equals(mo, "typeof(dtext1)", "'object'"); check_equals(mo, "typeof(dtext1.text)", "'string'"); @@ -162,7 +174,7 @@ check_equals(mo, "typeof(dtext1.__proto__.background)", "'undefined'"); check_equals(mo, "typeof(dtext1.__proto__.backgroundColor)", "'undefined'"); check_equals(mo, "typeof(dtext1.__proto__.textColor)", "'undefined'"); - check_equals(mo, "typeof(dtext1.__proto__.alpha)", "'undefined'"); + check_equals(mo, "typeof(dtext1.__proto__._alpha)", "'undefined'"); check_equals(mo, "dtext1.hasOwnProperty('text')", "false"); check_equals(mo, "dtext1.hasOwnProperty('background')", "false"); Index: testsuite/misc-ming.all/unload_movieclip_test1.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/unload_movieclip_test1.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- testsuite/misc-ming.all/unload_movieclip_test1.c 18 Jul 2007 04:01:52 -0000 1.1 +++ testsuite/misc-ming.all/unload_movieclip_test1.c 18 Jul 2007 05:20:43 -0000 1.2 @@ -83,7 +83,11 @@ // Frame 2: Place a static mc and define onUnload for it it = add_static_mc(mo, "mc", 3); - add_actions(mo, "mc.onUnload = function () { _root.x = this._currentframe; };"); + add_actions(mo, "mc.onUnload = function () { " + " _root.x = this._currentframe; " + " _root.check_equals(typeof(this), 'movieclip'); " + " _root.xcheck_equals(this, _root.mc); " + "};"); SWFMovie_nextFrame(mo); // Frame 3: Remove the mc to trigger onUnload @@ -104,3 +108,4 @@ return 0; } + _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit