@@ -86,6 +86,12 @@ Item {
90+ id: mainAppChangedSpy
92+ signalName: "mainAppChanged"
89 UT.UnityTestCase {
95 UT.UnityTestCase {
90 id: testCase
96 id: testCase
91 name: "PhoneStage"
97 name: "PhoneStage"
@@ -583,5 +589,21 @@ Item {
583 compare(topLevelSurfaceList.idAt(0), webbrowserSurfaceId);
589 compare(topLevelSurfaceList.idAt(0), webbrowserSurfaceId);
584 compare(webbrowserApp.focused, true);
590 compare(webbrowserApp.focused, true);
594+ Check that set & unset allowInteractivity won't change main app.
596+ function test_interactivityShouldNotChangeMainApp()
598+ // Have something to focus
599+ var webbrowserSurfaceId = topLevelSurfaceList.nextId;
600+ var webbrowserApp = ApplicationManager.startApplication("morph-browser");
601+ waitUntilAppSurfaceShowsUp(webbrowserSurfaceId);
603+ mainAppChangedSpy.clear();
604+ stage.allowInteractivity = false;
605+ stage.allowInteractivity = true;
606+ compare(mainAppChangedSpy.count, 0);