[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DefineE...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DefineE... |
Date: |
Tue, 08 Apr 2008 20:33:31 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/04/08 20:33:31
Modified files:
. : ChangeLog
testsuite/misc-ming.all: DefineEditTextTest.c
Log message:
more tests for _parent, _xscale, _yscale, _xmouse and _ymouse.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6221&r2=1.6222
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextTest.c?cvsroot=gnash&r1=1.27&r2=1.28
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6221
retrieving revision 1.6222
diff -u -b -r1.6221 -r1.6222
--- ChangeLog 8 Apr 2008 20:30:27 -0000 1.6221
+++ ChangeLog 8 Apr 2008 20:33:30 -0000 1.6222
@@ -1,3 +1,8 @@
+2008-04-08 Sandro Santilli <address@hidden>
+
+ * testsuite/misc-ming.all/DefineEditTextTest.c: more tests
+ for _parent, _xscale, _yscale, _xmouse and _ymouse.
+
2008-04-08 Russ Nelson <address@hidden>
* configure.ac: suggest "apt-get install swftools"
Index: testsuite/misc-ming.all/DefineEditTextTest.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextTest.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- testsuite/misc-ming.all/DefineEditTextTest.c 7 Feb 2008 19:50:22
-0000 1.27
+++ testsuite/misc-ming.all/DefineEditTextTest.c 8 Apr 2008 20:33:31
-0000 1.28
@@ -161,11 +161,18 @@
check_equals(mo, "etext1.embedFonts", "true");
check_equals(mo, "dtext1.__proto__", "TextField.prototype");
+ check_equals(mo, "etext1.__proto__", "TextField.prototype");
+
// checks after placing some swf defined TextField
check(mo, "TextField.prototype.hasOwnProperty('background')");
check(mo, "TextField.prototype.hasOwnProperty('backgroundColor')");
xcheck(mo, "TextField.prototype.hasOwnProperty('text')");
check(mo, "TextField.prototype.hasOwnProperty('textColor')");
+ xcheck(mo, "!TextField.prototype.hasOwnProperty('_parent')");
+ xcheck(mo, "!TextField.prototype.hasOwnProperty('_xmouse')");
+ xcheck(mo, "!TextField.prototype.hasOwnProperty('_ymouse')");
+ xcheck(mo, "!TextField.prototype.hasOwnProperty('_xscale')");
+ xcheck(mo, "!TextField.prototype.hasOwnProperty('_yscale')");
check_equals(mo, "typeof(dtext1)", "'object'");
check_equals(mo, "typeof(dtext1.text)", "'string'");
@@ -187,6 +194,16 @@
check_equals(mo, "dtext1.hasOwnProperty('backgroundColor')", "false");
check_equals(mo, "dtext1.hasOwnProperty('textColor')", "false");
check_equals(mo, "dtext1.hasOwnProperty('_alpha')", "false");
+ check(mo, "!dtext1.hasOwnProperty('_parent')");
+ check(mo, "!dtext1.hasOwnProperty('_xmouse')");
+ check(mo, "!dtext1.hasOwnProperty('_ymouse')");
+ check(mo, "!dtext1.hasOwnProperty('_xscale')");
+ check(mo, "!dtext1.hasOwnProperty('_yscale')");
+ check(mo, "!etext1.hasOwnProperty('_parent')");
+ check(mo, "!etext1.hasOwnProperty('_xmouse')");
+ check(mo, "!etext1.hasOwnProperty('_ymouse')");
+ check(mo, "!etext1.hasOwnProperty('_xscale')");
+ check(mo, "!etext1.hasOwnProperty('_yscale')");
xcheck_equals(mo, "dtext1.__proto__.hasOwnProperty('text')", "true");
check_equals(mo, "dtext1.__proto__.hasOwnProperty('background')", "true");
@@ -210,6 +227,16 @@
check_equals(mo, "dtext1._alpha", "100");
check_equals(mo, "etext1._alpha", "100");
check_equals(mo, "dtext2._alpha", "100");
+ check_equals(mo, "etext1._parent", "_root");
+ check_equals(mo, "dtext2._parent", "_root");
+ check_equals(mo, "etext1._xscale", "100");
+ check_equals(mo, "dtext2._xscale", "100");
+ check_equals(mo, "etext1._yscale", "100");
+ check_equals(mo, "dtext2._yscale", "100");
+ check_equals(mo, "typeof(etext1._xmouse)", "'number'");
+ check_equals(mo, "typeof(dtext2._xmouse)", "'number'");
+ check_equals(mo, "typeof(etext1._ymouse)", "'number'");
+ check_equals(mo, "typeof(dtext2._ymouse)", "'number'");
add_actions(mo, "dtext1.background = true;"
"etext1.background = true;"