[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/ButtonE...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/ButtonE... |
Date: |
Wed, 22 Nov 2006 11:44:40 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/11/22 11:44:40
Modified files:
. : ChangeLog
testsuite/misc-ming.all: ButtonEventsTest.c
Log message:
* testsuite/misc-ming.all/ButtonEventsTest.c: added two more
frames to the testcase adding shapes at lower (frame1) and
higher (frame2) depth then the button. The aim is debugging
what I think VV tried to fix in DisplayList::visitBackward.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1704&r2=1.1705
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/ButtonEventsTest.c?cvsroot=gnash&r1=1.3&r2=1.4
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1704
retrieving revision 1.1705
diff -u -b -r1.1704 -r1.1705
--- ChangeLog 22 Nov 2006 11:42:21 -0000 1.1704
+++ ChangeLog 22 Nov 2006 11:44:40 -0000 1.1705
@@ -1,5 +1,9 @@
-2006-11-21 Sandro Santilli <address@hidden>
+2006-11-22 Sandro Santilli <address@hidden>
+ * testsuite/misc-ming.all/ButtonEventsTest.c: added two more
+ frames to the testcase adding shapes at lower (frame1) and
+ higher (frame2) depth then the button. The aim is debugging
+ what I think VV tried to fix in DisplayList::visitBackward.
* testsuite/check.h: add an 'info' macro as a proxy to dejagnu's
note() function, with a fallback stub.
* testsuite/actionscript.all/MovieClip.as: fix some expected
Index: testsuite/misc-ming.all/ButtonEventsTest.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/ButtonEventsTest.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- testsuite/misc-ming.all/ButtonEventsTest.c 29 Oct 2006 18:34:18 -0000
1.3
+++ testsuite/misc-ming.all/ButtonEventsTest.c 22 Nov 2006 11:44:40 -0000
1.4
@@ -24,7 +24,8 @@
* In a movie of 120x120 pixels, it places a movieclip containing a squared
* button in the middle of the stage, and a text area on top.
*
- * The movie has 1 frame.
+ * The movie has 3 frames, with the second adding a shape at a lower depth
+ * and the third one at an higher depth respect to the button.
*
* The following events print the event name in the text area
* (called _root.textfield) and change the color of the button:
@@ -79,14 +80,14 @@
SWFMovie_add(mo, (SWFBlock)ac);
}
+SWFDisplayItem add_button(SWFMovie mo);
SWFDisplayItem
add_button(SWFMovie mo)
{
- SWFDisplayItem it, it2;
+ SWFDisplayItem it;
SWFMovieClip mc;
SWFShape sh1, sh2, sh3, sh4;
SWFButton bu = newSWFButton();
- SWFAction ac, ac2;
mc = newSWFMovieClip();
sh1 = make_fill_square(0, 0, 40, 40, 0, 0, 0, 0, 0, 0);
@@ -191,9 +192,38 @@
it = add_button(mo);
SWFDisplayItem_moveTo(it, 40, 40);
SWFDisplayItem_setName(it, "square1");
+ SWFDisplayItem_setDepth(it, 2);
+
+ SWFMovie_nextFrame(mo); /* showFrame */
+
+ /*****************************************************
+ *
+ * On second frame, add a shape at lower depth
+ *
+ *****************************************************/
+
+ {
+ SWFShape sh = make_fill_square(0, 0, 120, 120, 0, 0, 0, 0, 255,
0);
+ SWFDisplayItem itsh = SWFMovie_add(mo, (SWFBlock)sh);
+ SWFDisplayItem_setDepth(itsh, 1);
SWFMovie_nextFrame(mo); /* showFrame */
+ }
+
+ /*****************************************************
+ *
+ * On third frame, add a shape at higher depth
+ *
+ *****************************************************/
+
+ {
+ SWFShape sh = make_fill_square(0, 0, 120, 120, 0, 0, 0, 0, 255,
0);
+ SWFDisplayItem itsh = SWFMovie_add(mo, (SWFBlock)sh);
+ SWFDisplayItem_setDepth(itsh, 3);
+ SWFDisplayItem_setColorAdd(itsh, 0, 0, 0, -128);
+ SWFMovie_nextFrame(mo); /* showFrame */
+ }
/*****************************************************
*
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/ButtonE...,
Sandro Santilli <=