@@ -26,7 +26,7 @@ import Unity.Test 0.1 as UT
2626Rectangle {
2727 id: root
2828 width: units.gu(80)
29− height: units.gu(70)
29+ height: units.gu(76)
3030 color: "orange"
3131
3232 Lockscreen {
@@ -34,6 +34,7 @@ Rectangle {
3434 anchors.fill: parent
3535 anchors.rightMargin: units.gu(40)
3636 infoText: infoTextTextField.text
37+ retryText: retryCountTextField.text
3738 errorText: errorTextTextField.text
3839 alphaNumeric: pinPadCheckBox.checked
3940 minPinLength: minPinLengthTextField.text
@@ -118,6 +119,16 @@ Rectangle {
118119 text: "Max PIN length"
119120 }
120121 }
122+ Row {
123+ TextField {
124+ id: retryCountTextField
125+ width: units.gu(7)
126+ text: "3 retries left"
127+ }
128+ Label {
129+ text: "Retries left"
130+ }
131+ }
121132 Row {
122133 TextField {
123134 id: delayMinutesTextField
@@ -411,6 +422,22 @@ Rectangle {
411422 }
412423 }
413424
425+ function test_retryDisplay_data() {
426+ return [
427+ {tag: "empty", retryText: " "},
428+ {tag: "3 retries left", retryText: "3 retries left"},
429+ ]
430+ }
431+
432+ function test_retryDisplay(data) {
433+ pinPadCheckBox.checked = false
434+ waitForLockscreenReady();
435+
436+ retryCountTextField.text = data.retryText;
437+ var label = findChild(lockscreen, "retryLabel")
438+ compare(label.text, data.retryText);
439+ }
440+
414441 function test_infoPopup() {
415442 verify(findChild(root, "infoPopup") === null);
416443 lockscreen.showInfoPopup("foo", "bar");