CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/08/15 23:00:16

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: TextField.as 

Log message:
                * testsuite/actionscript.all/TextField.as: a few more tests for
                  interaction between _width, autoSize and wordWrap (more 
needed).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4007&r2=1.4008
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/TextField.as?cvsroot=gnash&r1=1.15&r2=1.16

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4007
retrieving revision 1.4008
diff -u -b -r1.4007 -r1.4008
--- ChangeLog   15 Aug 2007 06:52:19 -0000      1.4007
+++ ChangeLog   15 Aug 2007 23:00:15 -0000      1.4008
@@ -1,3 +1,8 @@
+2007-08-13 Sandro Santilli <[EMAIL PROTECTED]>
+
+       * testsuite/actionscript.all/TextField.as: a few more tests for
+         interaction between _width, autoSize and wordWrap (more needed).
+
 2007-08-15 Zou Lunkai <[EMAIL PROTECTED]>
 
        * testsuite/actionscript.all/Object.as: more tests and new failures.

Index: testsuite/actionscript.all/TextField.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/TextField.as,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- testsuite/actionscript.all/TextField.as     14 Aug 2007 03:04:29 -0000      
1.15
+++ testsuite/actionscript.all/TextField.as     15 Aug 2007 23:00:15 -0000      
1.16
@@ -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.15 2007/08/14 03:04:29 strk Exp $";
+rcsid="$Id: TextField.as,v 1.16 2007/08/15 23:00:15 strk Exp $";
 
 #include "check.as"
 
@@ -619,8 +619,17 @@
 tf._width = 10; // "hello world" text should overflow this
 tf.text = "Hello world";
 tf.autoSize = 'none';
+tf.wordWrap = false;
 xcheck_equals(tf._width, 10);
+origTextWidth = tf.textWidth;
 tf.autoSize = 'center';
 check(tf._width > 10);
+check_equals(origTextWidth, tf.textWidth); // textWidth isn't influenced by 
autoSize 
+tf.autoSize = 'none';
+tf.wordWrap = true;
+tf._width = 10;
+// Gnash ignores assigments to _width (should change TextField rendering area 
bounds instead)
+xcheck_equals(tf._width, 10);
+check_equals(origTextWidth, tf.textWidth); // textWidth isn't influenced by 
wordWrap
 
 #endif // OUTPUT_VERSION > 5


_______________________________________________
Gnash-commit mailing list
Gnash-commit@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to