[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/misc-ming.all ButtonEventsTest-...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/misc-ming.all ButtonEventsTest-... |
Date: |
Wed, 22 Nov 2006 11:55:10 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/11/22 11:55:10
Modified files:
testsuite/misc-ming.all: ButtonEventsTest-Runner.cpp
Log message:
Added check to verify that front and back squares are placed
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp?cvsroot=gnash&r1=1.6&r2=1.7
Patches:
Index: ButtonEventsTest-Runner.cpp
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- ButtonEventsTest-Runner.cpp 22 Nov 2006 11:49:56 -0000 1.6
+++ ButtonEventsTest-Runner.cpp 22 Nov 2006 11:55:10 -0000 1.7
@@ -102,11 +102,6 @@
const character* text = tester.findDisplayItemByName(*root,
"textfield");
check(text);
- const character* square_back = tester.findDisplayItemByDepth(*root, 1);
- check(!square_back);
- const character* square_front = tester.findDisplayItemByDepth(*root, 3);
- check(!square_front);
-
check_equals(string(text->get_text_value()), string("Play with the
button"));
check(!tester.isMouseOverMouseEntity());
// TODO: check that pixel @ 60,60 is red !
@@ -118,6 +113,25 @@
for (int fno=0; fno<root->get_frame_count(); fno++)
{
+ const character* square_back =
tester.findDisplayItemByDepth(*root, 1);
+ const character* square_front =
tester.findDisplayItemByDepth(*root, 3);
+
+ switch (fno)
+ {
+ case 0:
+ check(!square_back);
+ check(!square_front);
+ break;
+ case 1:
+ check(square_back);
+ check(!square_front);
+ break;
+ case 2:
+ check(square_back);
+ check(square_front);
+ break;
+ }
+
check_equals(root->get_current_frame(), fno);
info (("testing mouse activity in frame %d",
root->get_current_frame()));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/testsuite/misc-ming.all ButtonEventsTest-...,
Sandro Santilli <=