[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DefineE... [relea
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DefineE... [release_0_7_2] |
Date: |
Mon, 06 Nov 2006 11:07:33 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Branch: release_0_7_2
Changes by: Sandro Santilli <strk> 06/11/06 11:07:33
Modified files:
. : ChangeLog
testsuite/misc-ming.all:
DefineEditTextVariableNameTest-Runner.cpp
DefineEditTextVariableNameTest.c
Log message:
* testsuite/misc-ming.all/:
DefineEditTextVariableNameTest-Runner.cpp,
DefineEditTextVariableNameTest.c: added test for assigning
an empty string to a textfield.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.1412.2.90&r2=1.1412.2.91
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.1.2.1&r2=1.1.2.2
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest.c?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.7.2.1&r2=1.7.2.2
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1412.2.90
retrieving revision 1.1412.2.91
diff -u -b -r1.1412.2.90 -r1.1412.2.91
--- ChangeLog 6 Nov 2006 10:54:28 -0000 1.1412.2.90
+++ ChangeLog 6 Nov 2006 11:07:33 -0000 1.1412.2.91
@@ -1,5 +1,8 @@
2006-11-06 Sandro Santilli <address@hidden>
+ * testsuite/misc-ming.all/: DefineEditTextVariableNameTest-Runner.cpp,
+ DefineEditTextVariableNameTest.c: added test for assigning
+ an empty string to a textfield.
* server/edit_text_character (format_text): properly
handle empty-text.
Index: testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp 30 Oct
2006 14:28:55 -0000 1.1.2.1
+++ testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp 6 Nov
2006 11:07:33 -0000 1.1.2.2
@@ -44,7 +44,7 @@
sprite_instance* root = tester.getRootMovie();
assert(root);
- check_equals(root->get_frame_count(), 3);
+ check_equals(root->get_frame_count(), 4);
check_equals(root->get_play_state(), movie_interface::PLAY);
check_equals(root->get_current_frame(), 0);
@@ -86,5 +86,14 @@
textfield);
check_equals(string(textfield->get_text_value()), string("World"));
+ tester.advance();
+
+ check_equals(root->get_play_state(), movie_interface::PLAY);
+ check_equals(root->get_current_frame(), 2);
+ check_equals(tester.findDisplayItemByName(*root, "mc1"), mc1_sp);
+ check_equals(tester.findDisplayItemByName(*mc1_sp, "textfield"),
+ textfield);
+ check_equals(string(textfield->get_text_value()), string(""));
+
}
Index: testsuite/misc-ming.all/DefineEditTextVariableNameTest.c
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest.c,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -u -b -r1.7.2.1 -r1.7.2.2
--- testsuite/misc-ming.all/DefineEditTextVariableNameTest.c 30 Oct 2006
14:28:55 -0000 1.7.2.1
+++ testsuite/misc-ming.all/DefineEditTextVariableNameTest.c 6 Nov 2006
11:07:33 -0000 1.7.2.2
@@ -196,6 +196,24 @@
SWFMovie_nextFrame(mo); /* showFrame */
}
+ { // set text to the empty string
+ SWFAction ac;
+ sprintf(buf, "%s = \"\"; "
+ "xtrace(\"%s: \"+%s+\"\n"
+ "mc1._width: \"+mc1._width+\"\n"
+ "mc1._height: \"+mc1._height+\"\n"
+ "_root._width: \"+_root._width+\"\n"
+ "_root._height: \"+_root._height+\"\n"
+ "mc1.textfield: \"+mc1.textfield+\"\n"
+ "mc1.textfield.text: \"+mc1.textfield.text+\"\n"
+ "mc1.textfield._width: \"+mc1.textfield._width+\"\n"
+ "mc1.textfield._height: \"+mc1.textfield._height); ",
+ varName, varName, varName);
+ ac = compileSWFActionCode(buf);
+ SWFMovie_add(mo, (SWFBlock)ac);
+ SWFMovie_nextFrame(mo); /* showFrame */
+ }
+
{
// testName (the variable) doesn't access the character,
// only its text.
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DefineE... [release_0_7_2],
Sandro Santilli <=