aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJarosław <jaroslaw.jaryszew@teleca.com>2011-01-04 14:36:09 +0100
committerDominik Kapusta <dominik.kapusta@teleca.com>2011-01-10 11:43:48 +0100
commit958b87e8d63624f548db5bbf6da55ede49bfa909 (patch)
tree3997870155107e0227ba31de61eed41767e08a3b /tests
parentf647e17bdba42536c7eab8813f4219ea0be66fa8 (diff)
Fixes: NB#213582 - Connection dialog shown in wrong orientation
RevBy: Dominik Details: - Partial revert of 56ae58cece20edf526036567129e5b09433c47de - Libmeegotouch will now use ContextProperty::waitForSubscription(true) - which is properly blocking version of method. Requires contextsubscriber >=0.5.25 to compile.
Diffstat (limited to 'tests')
-rw-r--r--tests/ut_morientationtracker/ut_morientationtracker.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/ut_morientationtracker/ut_morientationtracker.cpp b/tests/ut_morientationtracker/ut_morientationtracker.cpp
index e88f212c..f0435861 100644
--- a/tests/ut_morientationtracker/ut_morientationtracker.cpp
+++ b/tests/ut_morientationtracker/ut_morientationtracker.cpp
@@ -49,9 +49,7 @@ bool MDeviceProfile::orientationAngleIsSupported(M::OrientationAngle angle, bool
void Ut_MOrientationTracker::init()
{
window1 = new MWindow;
- window1->show();
window2 = new MWindow;
- window2->show();
}
void Ut_MOrientationTracker::cleanup()
@@ -329,13 +327,13 @@ void Ut_MOrientationTracker::testFollowCurrentWindow()
setAllAngles(&supportedAnglesStubLists[KeyboardOpen]);
setAllAngles(&supportedAnglesStubLists[KeyboardClosed]);
- //make window2 start following _MEEGOTOUCH_CURRENT_APP_WINDOW
- window2->setProperty("followsCurrentApplicationWindowOrientation", 1);
-
//create app window and set it as _MEEGOTOUCH_CURRENT_APP_WINDOW;
MApplicationWindow appWindow;
setCurrentWindowXPropertyOnRootWindow(appWindow.effectiveWinId());
+ //make window2 start following _MEEGOTOUCH_CURRENT_APP_WINDOW
+ window2->setProperty("followsCurrentApplicationWindowOrientation", 1);
+
//since there is no MApplication instance we have to run this handler manualy
mTracker->handleCurrentAppWindowChange();