gnash-commit
[Top][All Lists]
Advanced

[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: Mon, 06 Nov 2006 11:02:56 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/11/06 11:02:56

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&r1=1.1535&r2=1.1536
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp?cvsroot=gnash&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest.c?cvsroot=gnash&r1=1.8&r2=1.9

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1535
retrieving revision 1.1536
diff -u -b -r1.1535 -r1.1536
--- ChangeLog   6 Nov 2006 10:51:47 -0000       1.1535
+++ ChangeLog   6 Nov 2006 11:02:56 -0000       1.1536
@@ -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.
        * backend/render_handler_agg_style.h: comment-out

Index: testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp   29 Oct 
2006 18:34:18 -0000      1.2
+++ testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp   6 Nov 
2006 11:02:56 -0000       1.3
@@ -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.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- testsuite/misc-ming.all/DefineEditTextVariableNameTest.c    29 Oct 2006 
18:34:18 -0000      1.8
+++ testsuite/misc-ming.all/DefineEditTextVariableNameTest.c    6 Nov 2006 
11:02:56 -0000       1.9
@@ -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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]