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/replace...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/replace...
Date: Thu, 24 May 2007 09:14:48 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/05/24 09:14:48

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: replace_shapes1test.c 

Log message:
                * testsuite/misc-ming.all/replace_shapes1test.c:
                  Add more tests, updated comments.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3331&r2=1.3332
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/replace_shapes1test.c?cvsroot=gnash&r1=1.4&r2=1.5

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3331
retrieving revision 1.3332
diff -u -b -r1.3331 -r1.3332
--- ChangeLog   24 May 2007 09:00:48 -0000      1.3331
+++ ChangeLog   24 May 2007 09:14:48 -0000      1.3332
@@ -1,5 +1,7 @@
 2007-05-24 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/replace_shapes1test.c:
+         Add more tests, updated comments.
        * testsuite/actionscript.all/MovieClip.as:
          Add test for _root.getDepth() being static-0.
 

Index: testsuite/misc-ming.all/replace_shapes1test.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/replace_shapes1test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- testsuite/misc-ming.all/replace_shapes1test.c       24 May 2007 06:45:29 
-0000      1.4
+++ testsuite/misc-ming.all/replace_shapes1test.c       24 May 2007 09:14:48 
-0000      1.5
@@ -42,9 +42,10 @@
  * 
  * Expected behaviour:
  * 
- *  A single instances have been constructed in total.
- *  The instance contains a red shape at (100,300) initially, a green shape
- *  at (130,330) after the replace, a red shape at (100,300) again on 
loop-back.
+ *  In frame 2 we have a red square at (100,300), in frame 3 we have a green 
square at (130,330),
+ *  after the jump-back we have a red square at (100,300) again.
+ *  The name specified in the PlaceObject2 tag in frame 2 evaluates to the 
_root movie.
+ *  The name specified in the PlaceObject2 tag in frame 3 (replace) evaluates 
to undefined.
  */
 
 #include "ming_utils.h"
@@ -148,7 +149,11 @@
                        " _root.note('_root.depth3Constructed set to 
'+_root.depth3Constructed);"
                        ), SWFACTION_CONSTRUCT);
   add_actions(mo, "static1.name='static1';"); 
+
   xcheck_equals(mo, "typeof(static1)", "'movieclip'"); 
+  xcheck_equals(mo, "static1", "_root");
+  check_equals(mo, "static1.name", "'static1'");
+  xcheck_equals(mo, "_root.name", "'static1'");
 
   // Gnash allows custom members to shape characters...
   // this is important to verify, see next check for it after REPLACE
@@ -178,8 +183,9 @@
 
   // Can still reference the old character and it's variables, after replace
   xcheck_equals(mo, "typeof(static1)", "'movieclip'"); 
+  xcheck_equals(mo, "static1", "_root");
   xcheck_equals(mo, "static1.name", "'static1'");
-  xcheck_equals(mo, "static1._target", "'/'");
+  xcheck_equals(mo, "_root.name", "'static1'");
 
   // While the new name results undefined...
   xcheck_equals(mo, "typeof(static2)", "'undefined'"); // the name wasn't 
changed




reply via email to

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