gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/testsuite/misc-ming.all DefineEditTextVar...


From: Zou Lunkai
Subject: [Gnash-commit] gnash/testsuite/misc-ming.all DefineEditTextVar...
Date: Tue, 08 Apr 2008 05:58:02 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  08/04/08 05:58:02

Modified files:
        testsuite/misc-ming.all: 
                                 DefineEditTextVariableNameTest-Runner.cpp 
                                 DefineEditTextVariableNameTest.c 

Log message:
        test protection of the textfield instance variable, passed.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp?cvsroot=gnash&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest.c?cvsroot=gnash&r1=1.25&r2=1.26

Patches:
Index: DefineEditTextVariableNameTest-Runner.cpp
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- DefineEditTextVariableNameTest-Runner.cpp   3 Apr 2008 05:47:05 -0000       
1.17
+++ DefineEditTextVariableNameTest-Runner.cpp   8 Apr 2008 05:58:02 -0000       
1.18
@@ -42,7 +42,7 @@
        sprite_instance* root = tester.getRootMovie();
        assert(root);
 
-       check_equals(root->get_frame_count(), 13);
+       check_equals(root->get_frame_count(), 14);
        check_equals(root->get_play_state(), sprite_instance::PLAY);
        check_equals(root->get_current_frame(), 0);
 

Index: DefineEditTextVariableNameTest.c
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- DefineEditTextVariableNameTest.c    3 Apr 2008 07:59:09 -0000       1.25
+++ DefineEditTextVariableNameTest.c    8 Apr 2008 05:58:02 -0000       1.26
@@ -210,7 +210,7 @@
 main(int argc, char** argv)
 {
     SWFMovie mo;
-    SWFMovieClip mc1, mc2, mc3, mc4, mc5, mc6;
+    SWFMovieClip mc1, mc2, mc3, mc4, mc5, mc6, mc7;
     SWFDisplayItem it;
     const char *srcdir=".";
     /* The variable name for textfield */
@@ -387,6 +387,22 @@
     check_equals(mo, "mc6.textfield.text", "'change back'");
     SWFMovie_nextFrame(mo); 
 
+    //
+    //  test protection of textField instance variable.
+    //
+    mc7 = newSWFMovieClip();
+    add_text_field(mc7, (SWFBlock)bfont, "text_var7", "initial_text");
+    it = SWFMovie_add(mo, (SWFBlock)mc7);
+    SWFDisplayItem_setName(it, "mc7");
+    SWFDisplayItem_moveTo(it, 400, 400);
+    check_equals(mo, "typeof(mc7.textfield)", "'object'");
+    check_equals(mo, "typeof(mc7.text_var7)", "'string'");
+    add_actions(mo, 
+        "ASSetPropFlags(_root.mc7, null, 7, 7);" 
+        "mc7.textfield.text = 'new_text';");
+    check_equals(mo, "mc7.text_var7", "'initial_text'");
+    check_equals(mo, "mc7.textfield.text", "'new_text'");
+    SWFMovie_nextFrame(mo); 
     /*********************************************
      *
      * Print test results




reply via email to

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