@@ -27,9 +27,10 @@ import Powerd 0.1
28import "../../qml"
28import "../../qml"
32− spacing: 0
32+ width: contentRow.width
33+ height: contentRow.height
34 QtObject {
35 QtObject {
35 id: applicationArguments
36 id: applicationArguments
@@ -47,34 +48,36 @@ Row {
51− id: shellLoader
52+ id: contentRow
53− width: units.gu(40)
54+ Loader {
54− height: units.gu(71)
55+ id: shellLoader
56− property bool itemDestroyed: false
60+ property bool itemDestroyed: false
57− sourceComponent: Component {
61+ sourceComponent: Component {
59− Component.onDestruction: {
63+ Component.onDestruction: {
60− shellLoader.itemDestroyed = true
64+ shellLoader.itemDestroyed = true
66+ maxFailedLogins: maxRetriesTextField.text
62− maxFailedLogins: maxRetriesTextField.text
67− Rectangle {
71+ Rectangle {
68− color: "white"
72+ color: "white"
69− width: units.gu(30)
73+ width: units.gu(30)
70− height: shellLoader.height
74+ height: shellLoader.height
73− anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
77+ anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
74− spacing: units.gu(1)
78+ spacing: units.gu(1)
76− anchors { left: parent.left; right: parent.right }
80+ anchors { left: parent.left; right: parent.right }
78 text: "Show Greeter"
81 text: "Show Greeter"
79 onClicked: {
82 onClicked: {
80 if (shellLoader.status !== Loader.Ready)
83 if (shellLoader.status !== Loader.Ready)
@@ -86,15 +89,15 @@ Row {
92− text: "Max retries:"
94+ text: "Max retries:"
93− color: "black"
95+ color: "black"
95− TextField {
97+ TextField {
96− id: maxRetriesTextField
98+ id: maxRetriesTextField
97− text: "-1"
99+ text: "-1"
@@ -111,6 +114,7 @@ Row {
113 UT.UnityTestCase {
116 UT.UnityTestCase {
114 name: "ShellWithPin"
118 name: "ShellWithPin"
115 when: windowShown
119 when: windowShown
@@ -296,7 +300,7 @@ Row {
297 var dialog = findChild(root, "infoPopup")
301 var dialog = findChild(root, "infoPopup")
298 var button = findChild(dialog, "infoPopupOkButton")
302 var button = findChild(dialog, "infoPopupOkButton")
299− mouseClick(button, units.gu(1), units.gu(1))
303+ mouseClick(button, button.width / 2, button.height / 2)
300 tryCompareFunction(function() {return findChild(root, "infoPopup")}, null)
304 tryCompareFunction(function() {return findChild(root, "infoPopup")}, null)
302 tryCompare(resetSpy, "count", 0)
306 tryCompare(resetSpy, "count", 0)