@@ -52,20 +52,15 @@ Rectangle {
52 application: fakeApplication
52 application: fakeApplication
55− FocusScope {
55+ Loader {
56− id: appFocus
56+ id: applicationWindowLoader
58 top: parent.top
58 top: parent.top
59 bottom: parent.bottom
59 bottom: parent.bottom
60 left: parent.left
60 left: parent.left
62 width: units.gu(40)
62 width: units.gu(40)
65− id: applicationWindowLoader
67− sourceComponent: applicationWindowComponent
63+ sourceComponent: applicationWindowComponent
71 Rectangle {
66 Rectangle {
@@ -73,7 +68,7 @@ Rectangle {
74 top: parent.top
69 top: parent.top
75 bottom: parent.bottom
70 bottom: parent.bottom
76− left: appFocus.right
71+ left: applicationWindowLoader.right
77 right: parent.right
72 right: parent.right
@@ -384,15 +379,19 @@ Rectangle {
384 verify(stateGroup.state === "void");
379 verify(stateGroup.state === "void");
387− // should be forcing active focus when interactive changes,
388− // which will cause a FocusScope higher in the object hierarchy tp be given the focus
389 function test_forceActiveFocusFollowsInterative() {
382 function test_forceActiveFocusFollowsInterative() {
390 fakeApplication.createSession();
383 fakeApplication.createSession();
391 applicationWindowLoader.item.interactive = false;
384 applicationWindowLoader.item.interactive = false;
392 applicationWindowLoader.item.interactive = true;
385 applicationWindowLoader.item.interactive = true;
393 fakeSession.createSurface();
386 fakeSession.createSurface();
395− compare(appFocus.focus, true);
388+ compare(fakeSession.surface.activeFocus, true);
390+ applicationWindowLoader.item.interactive = false;
391+ compare(fakeSession.surface.activeFocus, false);
393+ applicationWindowLoader.item.interactive = true;
394+ compare(fakeSession.surface.activeFocus, true);