@@ -86,6 +86,12 @@ Item {
8686 }
8787 }
8888
89+ SignalSpy {
90+ id: mainAppChangedSpy
91+ target: stage
92+ signalName: "mainAppChanged"
93+ }
94+
8995 UT.UnityTestCase {
9096 id: testCase
9197 name: "PhoneStage"
@@ -583,5 +589,21 @@ Item {
583589 compare(topLevelSurfaceList.idAt(0), webbrowserSurfaceId);
584590 compare(webbrowserApp.focused, true);
585591 }
592+
593+ /*
594+ Check that set & unset allowInteractivity won't change main app.
595+ */
596+ function test_interactivityShouldNotChangeMainApp()
597+ {
598+ // Have something to focus
599+ var webbrowserSurfaceId = topLevelSurfaceList.nextId;
600+ var webbrowserApp = ApplicationManager.startApplication("morph-browser");
601+ waitUntilAppSurfaceShowsUp(webbrowserSurfaceId);
602+
603+ mainAppChangedSpy.clear();
604+ stage.allowInteractivity = false;
605+ stage.allowInteractivity = true;
606+ compare(mainAppChangedSpy.count, 0);
607+ }
586608 }
587609}