[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp tests...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp tests... |
Date: |
Mon, 23 Oct 2006 18:05:40 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/10/23 18:05:40
Modified files:
. : ChangeLog
testsuite : MovieTester.cpp MovieTester.h
testsuite/misc-ming.all: ButtonEventsTest-Runner.cpp
Log message:
* testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: add
checks
for MouseOverMouseEntity.
* testsuite/MovieTester.{cpp,h}: added isMouseOverMouseEntity()
method.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1365&r2=1.1366
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.h?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp?cvsroot=gnash&r1=1.2&r2=1.3
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1365
retrieving revision 1.1366
diff -u -b -r1.1365 -r1.1366
--- ChangeLog 23 Oct 2006 17:33:50 -0000 1.1365
+++ ChangeLog 23 Oct 2006 18:05:40 -0000 1.1366
@@ -1,5 +1,8 @@
2006-10-23 Sandro Santilli <address@hidden>
+ * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: add checks
+ for MouseOverMouseEntity.
+ * testsuite/MovieTester.{cpp,h}: added isMouseOverMouseEntity() method.
* server/action.{cpp,h} (event_id class): added is_mouse_event()
method.
* testsuite/actionscript.all/with.as: add a few more tests
Index: testsuite/MovieTester.cpp
===================================================================
RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- testsuite/MovieTester.cpp 16 Oct 2006 14:21:53 -0000 1.3
+++ testsuite/MovieTester.cpp 23 Oct 2006 18:05:40 -0000 1.4
@@ -120,4 +120,10 @@
_movie_root->notify_mouse_clicked(false, 1);
}
+bool
+MovieTester::isMouseOverMouseEntity()
+{
+ return _movie_root->isMouseOverActiveEntity();
+}
+
} // namespace gnash
Index: testsuite/MovieTester.h
===================================================================
RCS file: /sources/gnash/gnash/testsuite/MovieTester.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- testsuite/MovieTester.h 16 Oct 2006 14:21:53 -0000 1.3
+++ testsuite/MovieTester.h 23 Oct 2006 18:05:40 -0000 1.4
@@ -94,6 +94,11 @@
/// Notify mouse button was depressed
void depressMouseButton();
+ /// Return true if the currently active
+ /// character is over a character that
+ /// handles mouse events
+ bool isMouseOverMouseEntity();
+
private:
gnash::movie_root* _movie_root;
Index: testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp 16 Oct 2006 19:01:39
-0000 1.2
+++ testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp 23 Oct 2006 18:05:40
-0000 1.3
@@ -75,42 +75,50 @@
check(text);
check_equals(string(text->get_text_value()), string("Play with the
button"));
+ check(!tester.isMouseOverMouseEntity());
+
// TODO: check that pixel @ 60,60 is red !
// roll over the middle of the square, this should change
// the textfield value.
tester.movePointerTo(60, 60);
check_equals(string(text->get_text_value()), string("MouseOver"));
+ check(tester.isMouseOverMouseEntity());
// TODO: check that pixel @ 60,60 is yellow !
// press the mouse button, this should change
// the textfield value.
tester.pressMouseButton();
check_equals(string(text->get_text_value()), string("MouseDown"));
+ check(tester.isMouseOverMouseEntity());
// TODO: check that pixel @ 60,60 is green !
// depress the mouse button, this should change
// the textfield value.
tester.depressMouseButton();
check_equals(string(text->get_text_value()), string("MouseUp"));
+ check(tester.isMouseOverMouseEntity());
// TODO: check that pixel @ 60,60 is yellow !
// roll off the square, this should change
// the textfield value.
tester.movePointerTo(39, 60);
check_equals(string(text->get_text_value()), string("MouseOut"));
+ check(!tester.isMouseOverMouseEntity());
// TODO: check that pixel @ 60,60 is red !
// press the mouse button, this should not change anything
// as we're outside of the button.
tester.pressMouseButton();
check_equals(string(text->get_text_value()), string("MouseOut"));
+ check(!tester.isMouseOverMouseEntity());
// TODO: check that pixel @ 60,60 is red !
// depress the mouse button, this should not change anything
// as we're outside of the button.
tester.depressMouseButton();
check_equals(string(text->get_text_value()), string("MouseOut"));
+ check(!tester.isMouseOverMouseEntity());
// TODO: check that pixel @ 60,60 is red !
}