[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/display...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/display... |
Date: |
Mon, 21 May 2007 15:29:45 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/05/21 15:29:45
Modified files:
. : ChangeLog
testsuite/misc-ming.all: displaylist_depths_test9.c
Log message:
* testsuite/misc-ming.all/displaylist_depths_test9.c: add
a construct event handler for the static character placed
and replaced (duplicated), and tests for its run.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3296&r2=1.3297
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/displaylist_depths_test9.c?cvsroot=gnash&r1=1.5&r2=1.6
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3296
retrieving revision 1.3297
diff -u -b -r1.3296 -r1.3297
--- ChangeLog 21 May 2007 14:32:26 -0000 1.3296
+++ ChangeLog 21 May 2007 15:29:45 -0000 1.3297
@@ -1,8 +1,13 @@
+2007-05-21 Sandro Santilli <address@hidden>
+
+ * testsuite/misc-ming.all/displaylist_depths_test9.c: add
+ a construct event handler for the static character placed
+ and replaced (duplicated), and tests for its run.
+
2007-05-21 Rob Savoye <address@hidden>
* libbase/Makefile.am: Don't include LIBLTDL in libgnashbase.la.
-
2007-05-21 Sandro Santilli <address@hidden>
* server/parser/: movie_definition.h, movie_def_impl.h,
Index: testsuite/misc-ming.all/displaylist_depths_test9.c
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-ming.all/displaylist_depths_test9.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- testsuite/misc-ming.all/displaylist_depths_test9.c 20 May 2007 08:00:39
-0000 1.5
+++ testsuite/misc-ming.all/displaylist_depths_test9.c 21 May 2007 15:29:45
-0000 1.6
@@ -118,6 +118,10 @@
it1 = add_static_mc(mo, "static3", 3, 10, 200, 20, 20);
check_equals(mo, "static3.getDepth()", "-16381");
it2 = add_static_mc(mo, "static4", 4, 100, 200, 20, 20);
+ SWFDisplayItem_addAction(it2, newSWFAction(
+ "_root.note(this+' constructed');"
+ "_root.mc4Constructed++;"
+ ), SWFACTION_CONSTRUCT);
check_equals(mo, "static4.getDepth()", "-16380");
add_actions(mo, "duplicateMovieClip('/static4', 'dup0', -16380);");
check_equals(mo, "dup0.getDepth()", "-16380");
@@ -145,10 +149,14 @@
SWFMovie_nextFrame(mo);
// Frame 7: go to frame 5 and checks
+ check_equals(mo, "typeof(static4)", "'undefined'");
+ check_equals(mo, "typeof(dup0)", "'movieclip'");
+ check_equals(mo, "_root.mc4Constructed", "2"); // static4 and dup0...
add_actions(mo, "gotoAndStop(5);");
check_equals(mo, "typeof(static3)", "'movieclip'");
check_equals(mo, "typeof(static4)", "'movieclip'");
check_equals(mo, "typeof(dup0)", "'undefined'");
+ check_equals(mo, "mc4Constructed", "3"); // static4 twice, dup0 once
check_equals(mo, "typeof(dup1)", "'undefined'");
check_equals(mo, "typeof(dup2)", "'undefined'");
check_equals(mo, "typeof(dup3)", "'undefined'");