[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/misc-ming.all loop_test2.c
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/misc-ming.all loop_test2.c |
Date: |
Fri, 18 May 2007 18:18:26 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/05/18 18:18:26
Modified files:
testsuite/misc-ming.all: loop_test2.c
Log message:
some more paranoid checks
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test2.c?cvsroot=gnash&r1=1.2&r2=1.3
Patches:
Index: loop_test2.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test2.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- loop_test2.c 18 May 2007 18:00:43 -0000 1.2
+++ loop_test2.c 18 May 2007 18:18:26 -0000 1.3
@@ -121,9 +121,13 @@
SWFMovie_add(mo, (SWFBlock)newSWFAction(
"var mc1_depth = movieClip1.getDepth();"
"var mc2_depth = movieClip2.getDepth();"
+ "movieClip1.secretCode = 'mc1';"
+ "movieClip2.secretCode = 'mc2';"
"movieClip1.swapDepths(movieClip2);"
"check_equals(movieClip1.getDepth(), mc2_depth);"
"check_equals(movieClip2.getDepth(), mc1_depth);"
+ "check_equals(movieClip1.secretCode, 'mc1');"
+ "check_equals(movieClip2.secretCode, 'mc2');"
));
SWFMovie_nextFrame(mo);
@@ -135,10 +139,17 @@
"gotoAndStop(2);"
// Depths have not be restored
+ // (gnash fails because create new instnaces instead)
"xcheck_equals(movieClip1.getDepth(), mc2_depth);"
"xcheck_equals(movieClip2.getDepth(), mc1_depth);"
+ // They are still the same instance
+ // (gnash fails because create new instnaces instead)
+ "xcheck_equals(movieClip1.secretCode, 'mc1');"
+ "xcheck_equals(movieClip2.secretCode, 'mc2');"
+
// Chars have not been reconstructed
+ // (gnash fails because create new instnaces instead)
"xcheck_equals(mc1Constructed, 1);"
"xcheck_equals(mc2Constructed, 1);"