[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Text...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Text... |
Date: |
Sat, 02 Feb 2008 08:49:54 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/02/02 08:49:54
Modified files:
. : ChangeLog
testsuite/actionscript.all: TextField.as
Log message:
add test for bug #22216.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5549&r2=1.5550
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/TextField.as?cvsroot=gnash&r1=1.41&r2=1.42
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5549
retrieving revision 1.5550
diff -u -b -r1.5549 -r1.5550
--- ChangeLog 1 Feb 2008 16:28:36 -0000 1.5549
+++ ChangeLog 2 Feb 2008 08:49:53 -0000 1.5550
@@ -1,4 +1,8 @@
-2008-02-01 Sandro Santilli <address@hidden>
+2008-02-02 Sandro Santilli <address@hidden>
+
+ * testsuite/actionscript.all/TextField.as: add test for bug #22216.
+
+2008-02-01 Sandro Santilli <address@hidden>.
* server/swf_function.cpp (call operator): still declare named
arguments as locals no matter if they were passed or not.
Index: testsuite/actionscript.all/TextField.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/TextField.as,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- testsuite/actionscript.all/TextField.as 15 Jan 2008 14:17:43 -0000
1.41
+++ testsuite/actionscript.all/TextField.as 2 Feb 2008 08:49:54 -0000
1.42
@@ -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.41 2008/01/15 14:17:43 strk Exp $";
+rcsid="$Id: TextField.as,v 1.42 2008/02/02 08:49:54 strk Exp $";
#include "check.as"
@@ -763,6 +763,14 @@
tf._width = 10;
check_equals(tf._width, 10);
+// test that adding a newline doesn't change the bounds width
+// see bug #22216
+tf.autoSize = 'center';
+tf.text = "single line";
+linewidth = tf._width;
+tf.text = "single line\n";
+xcheck_equals(tf._width, linewidth);
+
#if OUTPUT_VERSION < 8
xcheck_equals(origTextWidth, tf.textWidth); // textWidth isn't influenced by
wordWrap
#else
@@ -815,9 +823,9 @@
#if OUTPUT_VERSION < 8
- check_totals(390);
-#else
check_totals(391);
+#else
+ check_totals(392);
#endif
#else // OUTPUT_VERSION <= 5
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Text...,
Sandro Santilli <=