@@ -26,7 +26,7 @@ import Unity.Test 0.1 as UT
26Rectangle {
26Rectangle {
28 width: units.gu(80)
28 width: units.gu(80)
29− height: units.gu(70)
29+ height: units.gu(76)
30 color: "orange"
30 color: "orange"
32 Lockscreen {
32 Lockscreen {
@@ -34,6 +34,7 @@ Rectangle {
34 anchors.fill: parent
34 anchors.fill: parent
35 anchors.rightMargin: units.gu(40)
35 anchors.rightMargin: units.gu(40)
36 infoText: infoTextTextField.text
36 infoText: infoTextTextField.text
37+ retryText: retryCountTextField.text
37 errorText: errorTextTextField.text
38 errorText: errorTextTextField.text
38 alphaNumeric: pinPadCheckBox.checked
39 alphaNumeric: pinPadCheckBox.checked
39 minPinLength: minPinLengthTextField.text
40 minPinLength: minPinLengthTextField.text
@@ -118,6 +119,16 @@ Rectangle {
118 text: "Max PIN length"
119 text: "Max PIN length"
124+ id: retryCountTextField
126+ text: "3 retries left"
129+ text: "Retries left"
122 TextField {
133 TextField {
123 id: delayMinutesTextField
134 id: delayMinutesTextField
@@ -411,6 +422,22 @@ Rectangle {
425+ function test_retryDisplay_data() {
427+ {tag: "empty", retryText: " "},
428+ {tag: "3 retries left", retryText: "3 retries left"},
432+ function test_retryDisplay(data) {
433+ pinPadCheckBox.checked = false
434+ waitForLockscreenReady();
436+ retryCountTextField.text = data.retryText;
437+ var label = findChild(lockscreen, "retryLabel")
438+ compare(label.text, data.retryText);
414 function test_infoPopup() {
441 function test_infoPopup() {
415 verify(findChild(root, "infoPopup") === null);
442 verify(findChild(root, "infoPopup") === null);
416 lockscreen.showInfoPopup("foo", "bar");
443 lockscreen.showInfoPopup("foo", "bar");