[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/misc-swfc.all movieclip_destruc...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash/testsuite/misc-swfc.all movieclip_destruc... |
Date: |
Fri, 31 Aug 2007 06:46:52 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/08/31 06:46:52
Modified files:
testsuite/misc-swfc.all: movieclip_destruction_test2.sc
Log message:
add tests for MovieClip.swapDepths
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/movieclip_destruction_test2.sc?cvsroot=gnash&r1=1.2&r2=1.3
Patches:
Index: movieclip_destruction_test2.sc
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-swfc.all/movieclip_destruction_test2.sc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- movieclip_destruction_test2.sc 31 Aug 2007 05:58:10 -0000 1.2
+++ movieclip_destruction_test2.sc 31 Aug 2007 06:46:52 -0000 1.3
@@ -67,7 +67,7 @@
.sprite mc3 // Define a sprite mc3
.frame 1
- .put b2 x = 0 y = 0
+ .put b3 x = 0 y = 0
.end
.put mc1 x = 100 y = 300 // Place mc1
@@ -167,8 +167,16 @@
check_equals(mc3Ref.valueOf(), null);
.end
-
+// Seperate tests for Movieclip.swapDepths
.frame 5
+ .put mc1 x = 100 y = 300 // Place mc1
+ .action:
+ check_equals(mc1.getDepth(), -16380);
+ mc1.swapDepths(-16400); // doesn't work, can't swap mc1 to a depth below
-16384
+ check_equals(mc1.getDepth(), -16380);
+ .end
+
+.frame 6
.action:
totals();
stop();