CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/11/14 16:31:51
Modified files: . : ChangeLog testsuite/actionscript.all: TextField.as Log message: more tests. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4859&r2=1.4860 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/TextField.as?cvsroot=gnash&r1=1.30&r2=1.31 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.4859 retrieving revision 1.4860 diff -u -b -r1.4859 -r1.4860 --- ChangeLog 14 Nov 2007 14:33:33 -0000 1.4859 +++ ChangeLog 14 Nov 2007 16:31:50 -0000 1.4860 @@ -1,5 +1,6 @@ 2007-11-14 Sandro Santilli <[EMAIL PROTECTED]> + * testsuite/actionscript.all/TextField.as: more tests. * server/sprite_instance.cpp, server/video_stream_instance.cpp: Remove some debugging output (compile-time defined) Index: testsuite/actionscript.all/TextField.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/TextField.as,v retrieving revision 1.30 retrieving revision 1.31 diff -u -b -r1.30 -r1.31 --- testsuite/actionscript.all/TextField.as 5 Nov 2007 09:04:08 -0000 1.30 +++ testsuite/actionscript.all/TextField.as 14 Nov 2007 16:31:50 -0000 1.31 @@ -19,7 +19,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.30 2007/11/05 09:04:08 strk Exp $"; +rcsid="$Id: TextField.as,v 1.31 2007/11/14 16:31:50 strk Exp $"; #include "check.as" @@ -397,6 +397,7 @@ xcheck_equals(tf._quality, "HIGH"); tf._quality = "LOW"; check_equals(tf._quality, "LOW"); +tf._quality = "HIGH"; // Check TextField.restrict (the set of characters a user can input) @@ -547,6 +548,14 @@ check( ! tf.hasOwnProperty('variable') ); tf.variable = _level0.inputVar; xcheck_equals(typeof(tf.variable), 'null'); // _level0.inputVar doesn't exist ! +tf.variable = 2; +check_equals(typeof(tf.variable), 'string'); +check_equals(tf.variable, '2'); +tf.variable = undefined; +xcheck_equals(typeof(tf.variable), 'null'); +tf.variable = 2; +tf.variable = null; +xcheck_equals(typeof(tf.variable), 'null'); tf.variable = "_level0.inputVar"; check_equals(tf.variable, '_level0.inputVar'); xcheck_equals(typeof(_level0.inputVar), 'undefined'); @@ -677,10 +686,10 @@ origTextWidth = tf.textWidth; tf.autoSize = 'center'; check(tf._width > 10); -check_equals(origTextWidth, tf.textWidth); // textWidth isn't influenced by autoSize +check_equals(tf.textWidth, origTextWidth); // textWidth isn't influenced by autoSize tf.autoSize = 'none'; tf.wordWrap = true; -check_equals(origTextWidth, tf.textWidth); +xcheck(tf.textWidth < origTextWidth); // this can fail depending on the font used ! tf._width = 10; check_equals(tf._width, 10); _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit