summaryrefslogtreecommitdiff
path: root/NxWidgets/UnitTests/nxwm
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-02 22:03:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-02 22:03:05 +0000
commit4b489525b44d49fa0f8cb95733dd0fdf4553c884 (patch)
tree8773aca5097c9c4fd1006bf1e35685c55619ce17 /NxWidgets/UnitTests/nxwm
parent5ebf11ee63f1baaf070fd8484d99362810cd5bcc (diff)
downloadpx4-nuttx-4b489525b44d49fa0f8cb95733dd0fdf4553c884.tar.gz
px4-nuttx-4b489525b44d49fa0f8cb95733dd0fdf4553c884.tar.bz2
px4-nuttx-4b489525b44d49fa0f8cb95733dd0fdf4553c884.zip
NxWM updates (with some NX and NxWidget fixes too)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4689 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/UnitTests/nxwm')
-rw-r--r--NxWidgets/UnitTests/nxwm/main.cxx18
1 files changed, 17 insertions, 1 deletions
diff --git a/NxWidgets/UnitTests/nxwm/main.cxx b/NxWidgets/UnitTests/nxwm/main.cxx
index 8da6839a6..068452cff 100644
--- a/NxWidgets/UnitTests/nxwm/main.cxx
+++ b/NxWidgets/UnitTests/nxwm/main.cxx
@@ -42,6 +42,7 @@
#include <cstdio>
#include <cstdlib>
+#include <cunistd>
#include "ctaskbar.hxx"
#include "cstartwindow.hxx"
@@ -154,7 +155,7 @@ int MAIN_NAME(int argc, char *argv[])
// window application.
printf(MAIN_STRING "Opening the start window application window\n");
- NxWM::CApplicationWindow *window = g_nxwmtest.taskbar->openApplicationWindow();
+ NxWM::CApplicationWindow *window = g_nxwmtest.taskbar->openApplicationWindow();
if (!window)
{
printf(MAIN_STRING "ERROR: Failed to create CApplicationWindow for the start window\n");
@@ -308,6 +309,21 @@ nocalculator:
return EXIT_FAILURE;
}
+ // Wait a little bit for the display to stabilize. The simulation pressing of
+ // the 'start window' icon in the task bar
+
+ sleep(2);
+ g_nxwmtest.taskbar->clickIcon(0);
+
+ // Wait bit to see the result of the button press. The press the first icon
+ // in the start menu. That should be the NxConsole icon.
+
+ sleep(2);
+ g_nxwmtest.startwindow->clickIcon(0);
+
+ // Wait bit to see the result of the button press.
+
+ sleep(2);
return EXIT_SUCCESS;
}