[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-mtasc.all/Makefi...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-mtasc.all/Makefi... |
Date: |
Fri, 30 Nov 2007 18:04:06 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/11/30 18:04:06
Modified files:
. : ChangeLog
testsuite/misc-mtasc.all: Makefile.am check.as
Added files:
testsuite/misc-mtasc.all: TextFieldTest.as
Log message:
TextField test contributed by Asger Ottar Alstrup <address@hidden>.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5030&r2=1.5031
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/Makefile.am?cvsroot=gnash&r1=1.22&r2=1.23
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/check.as?cvsroot=gnash&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/TextFieldTest.as?cvsroot=gnash&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5030
retrieving revision 1.5031
diff -u -b -r1.5030 -r1.5031
--- ChangeLog 30 Nov 2007 13:56:04 -0000 1.5030
+++ ChangeLog 30 Nov 2007 18:04:05 -0000 1.5031
@@ -1,3 +1,11 @@
+2007-11-30 Sandro Santilli <address@hidden>
+
+ * testsuite/misc-mtasc.all/: Makefile.am, TextFieldTest.as:
+ New test for TextField, contributed by Asger Ottar Alstrup
+ <address@hidden>.
+ * testsuite/misc-mtasc.all/check.as: print expression in failing
+ check()/xcheck() calls.
+
2007-11-30 Benjamin Wolsey <address@hidden>
* libmedia/sdl/AudioDecoderFfmpeg.cpp: Don't try to delete non-
Index: testsuite/misc-mtasc.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/Makefile.am,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- testsuite/misc-mtasc.all/Makefile.am 29 Nov 2007 09:09:13 -0000
1.22
+++ testsuite/misc-mtasc.all/Makefile.am 30 Nov 2007 18:04:06 -0000
1.23
@@ -27,6 +27,7 @@
exception.as \
levels.as \
implementsOpTest.as \
+ TextFieldTest.as \
$(NULL)
# These ones are the ones for which consistency check fail
BOGUS_ASTESTS = \
Index: testsuite/misc-mtasc.all/check.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/check.as,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- testsuite/misc-mtasc.all/check.as 29 Nov 2007 08:32:39 -0000 1.5
+++ testsuite/misc-mtasc.all/check.as 30 Nov 2007 18:04:06 -0000 1.6
@@ -31,8 +31,8 @@
// First argument is the expression we test, second is the result we expect
#define xcheck_equals(obt, exp) Dejagnu.xcheck_equals(obt, exp, _INFO_);
-#define check(a) Dejagnu.check(a, _INFO_);
-#define xcheck(a) Dejagnu.xcheck(a, _INFO_);
+#define check(a) Dejagnu.check(a, #a+' '+_INFO_);
+#define xcheck(a) Dejagnu.xcheck(a, #a+' '+_INFO_);
#define pass(text) Dejagnu.pass(text + _INFO_)
#define xpass(text) Dejagnu.xpass(text + _INFO_)
Index: testsuite/misc-mtasc.all/TextFieldTest.as
===================================================================
RCS file: testsuite/misc-mtasc.all/TextFieldTest.as
diff -N testsuite/misc-mtasc.all/TextFieldTest.as
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-mtasc.all/TextFieldTest.as 30 Nov 2007 18:04:06 -0000
1.1
@@ -0,0 +1,43 @@
+// TextFieldTest.as - Tests for text
+//
+// Copyright (C) 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+//
+// Original author: Asger Ottar Alstrup - address@hidden
+//
+
+#include "check.as"
+
+class Text
+{
+ static function main(mc)
+ {
+ mc.createTextField("textf", 100, 200, 100, 100, 100);
+ _level0.createTextField("textout", 99, 10, 10, 500, 500);
+ var tf = _level0.textf;
+ tf.autoSize = true;
+ tf.text = "Hello world";
+ tf.backgroundColor = "0xFFEEEE";
+ tf.background = true;
+ var height = tf._height;
+ note("textfield height is "+height);
+ xcheck(height < 50);
+ check_totals(1);
+ Dejagnu.done();
+ }
+}
+