[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/misc-ming.all DefineEditTextTest.c
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash/testsuite/misc-ming.all DefineEditTextTest.c |
Date: |
Fri, 13 Jul 2007 03:35:22 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/07/13 03:35:21
Modified files:
testsuite/misc-ming.all: DefineEditTextTest.c
Log message:
more tests
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextTest.c?cvsroot=gnash&r1=1.13&r2=1.14
Patches:
Index: DefineEditTextTest.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextTest.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- DefineEditTextTest.c 13 Jul 2007 03:26:30 -0000 1.13
+++ DefineEditTextTest.c 13 Jul 2007 03:35:21 -0000 1.14
@@ -23,6 +23,8 @@
* The text written is 'Hello world' in both cases.
* Text at the bottom is the one with embedded fonts.
*
+ * TODO: add a testrunner for pixel checking.
+ *
* run as ./DefineEditTextTest
*/
@@ -169,7 +171,7 @@
xcheck_equals(mo, "dtext1.__proto__.hasOwnProperty('background')", "true");
xcheck_equals(mo, "dtext1.__proto__.hasOwnProperty('backgroundColor')",
"true");
xcheck_equals(mo, "dtext1.__proto__.hasOwnProperty('textColor')", "true");
- // ???
+ // Why _alpha is special???
xcheck_equals(mo, "dtext1.__proto__.hasOwnProperty('_alpha')", "false");
check_equals(mo, "dtext1.text", "'Hello'");
@@ -218,6 +220,9 @@
add_actions(mo, "dtext1._alpha = 0;"
"etext1._alpha = 0;"
"dtext2._alpha = 0;" );
+ check_equals(mo, "dtext1._alpha", "0");
+ check_equals(mo, "etext1._alpha", "0");
+ check_equals(mo, "dtext2._alpha", "0");
add_actions(mo, "totals(); stop();");
SWFMovie_nextFrame(mo);
/*****************************************************