aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNeeraj Kumar2010-07-05 21:49:15 +0000
committerNeeraj Kumar2010-07-05 21:49:15 +0000
commit9241e47e9aa4efb1d7c4c25d889b93aed915928c (patch)
treeef9e6bbfcff78e87234e9b18ab80e08d05be6c0d /engines
parentf470baa3144115365881a64bbe9bd82ba0e2f506 (diff)
downloadscummvm-rg350-9241e47e9aa4efb1d7c4c25d889b93aed915928c.tar.gz
scummvm-rg350-9241e47e9aa4efb1d7c4c25d889b93aed915928c.tar.bz2
scummvm-rg350-9241e47e9aa4efb1d7c4c25d889b93aed915928c.zip
Added couple of checks in Event handling
svn-id: r50713
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/events.cpp26
1 files changed, 23 insertions, 3 deletions
diff --git a/engines/testbed/events.cpp b/engines/testbed/events.cpp
index 6da5dd886b..e036551adc 100644
--- a/engines/testbed/events.cpp
+++ b/engines/testbed/events.cpp
@@ -173,6 +173,8 @@ bool EventTests::mouseEvents() {
}
}
+
+ CursorMan.showMouse(false);
// Verify results now!
if (Testsuite::handleInteractiveInput("Were mouse clicks L/R/M buttons identfied?", "Yes", "No", kOptionRight)) {
@@ -201,14 +203,32 @@ bool EventTests::kbdEvents() {
text += letter;
rect = Testsuite::writeOnScreen(text, pt);
}
- return true;
+
+ bool passed = true;
+
+ if (Testsuite::handleInteractiveInput("Was the word you entered same as that displayed on screen?", "Yes", "No", kOptionRight)) {
+ Testsuite::logDetailedPrintf("Keyboard Events failed");
+ passed = false;
+ }
+
+ Testsuite::clearScreen();
+ return passed;
}
bool EventTests::showMainMenu() {
Common::EventManager *eventMan = g_system->getEventManager();
Common::Event mainMenuEvent;
- mainMenuEvent.type = Common::EVENT_QUIT;
- eventMan->pushEvent(mainMenuEvent);
+ mainMenuEvent.type = Common::EVENT_MAINMENU;
+ eventMan->pushEvent(mainMenuEvent);
+
+ bool passed = true;
+
+ if (Testsuite::handleInteractiveInput("Were you able to see a main menu widget?", "Yes", "No", kOptionRight)) {
+ Testsuite::logDetailedPrintf("Event MAINMENU failed");
+ passed = false;
+ }
+
+ return passed;
}
EventTestSuite::EventTestSuite() {