CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/07/24 16:14:13
Modified files: . : ChangeLog testsuite/actionscript.all: TextField.as Log message: * testsuite/actionscript.all/TextField.as: more tests for embedFont member. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3808&r2=1.3809 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/TextField.as?cvsroot=gnash&r1=1.9&r2=1.10 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3808 retrieving revision 1.3809 diff -u -b -r1.3808 -r1.3809 --- ChangeLog 24 Jul 2007 15:40:53 -0000 1.3808 +++ ChangeLog 24 Jul 2007 16:14:12 -0000 1.3809 @@ -1,5 +1,10 @@ 2007-07-24 Sandro Santilli <[EMAIL PROTECTED]> + * testsuite/actionscript.all/TextField.as: more tests + for embedFont member. + +2007-07-24 Sandro Santilli <[EMAIL PROTECTED]> + * server/font.cpp: more parser verbosity. * server/movie_root.cpp (notify_global_key): Key object existed since SWF5, not SWF6. Fixes pacman-flash.swf. Index: testsuite/actionscript.all/TextField.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/TextField.as,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- testsuite/actionscript.all/TextField.as 22 Jul 2007 03:37:57 -0000 1.9 +++ testsuite/actionscript.all/TextField.as 24 Jul 2007 16:14:13 -0000 1.10 @@ -20,7 +20,7 @@ // compile this test case with Ming makeswf, and then // execute it like this gnash -1 -r 0 -v out.swf -rcsid="$Id: TextField.as,v 1.9 2007/07/22 03:37:57 strk Exp $"; +rcsid="$Id: TextField.as,v 1.10 2007/07/24 16:14:13 strk Exp $"; #include "check.as" @@ -180,6 +180,14 @@ xcheck_equals(typeof(tf.embedFonts), 'boolean'); check(!tf.hasOwnProperty('embedFonts')); xcheck_equals(tf.embedFonts, false); +tf.embedFonts = true; +check_equals(tf.embedFonts, true); +tf.embedFonts = new Number(0); // will be converted to bool (true) +xcheck_equals(typeof(tf.embedFonts), 'boolean'); +xcheck_equals(tf.embedFonts, true); +tf.embedFonts = ""; // will be converted to bool (false); +xcheck_equals(typeof(tf.embedFonts), 'boolean'); +xcheck_equals(tf.embedFonts, false); // TODO: do this test with really embedded fonts, in misc-ming.all/DefineEditTextTest.c // Check TextField._highquality _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit