@@ -34,10 +34,10 @@ Rectangle {
3434 anchors.rightMargin: units.gu(30)
3535 placeholderText: "Please enter your PIN"
3636 wrongPlaceholderText: "Incorrect PIN"
37+ retryText: retryCountTextField.text
3738 alphaNumeric: pinPadCheckBox.checked
3839 minPinLength: minPinLengthTextField.text
3940 maxPinLength: maxPinLengthTextField.text
40− retryCount: retryCountTextField.text
4141 username: "Lola"
4242 background: "../../../qml/graphics/phone_background.jpg"
4343 infoText: infoTextTextField.text
@@ -118,7 +118,7 @@ Rectangle {
118118 TextField {
119119 id: retryCountTextField
120120 width: units.gu(7)
121− text: "3"
121+ text: "3 retries left"
122122 }
123123 Label {
124124 text: "Retries left"
@@ -398,10 +398,8 @@ Rectangle {
398398
399399 function test_retryDisplay_data() {
400400 return [
401− {tag: "0", retryCount: 0, shown: true},
402− {tag: "1", retryCount: 1, shown: true},
403− {tag: "3", retryCount: 3, shown: true},
404− {tag: "-1", retryCount: -1, shown: false},
401+ {tag: "empty", retryText: "", shown: false},
402+ {tag: "3 retries left", retryText: "3 retries left", shown: true},
405403 ]
406404 }
407405
@@ -409,7 +407,7 @@ Rectangle {
409407 pinPadCheckBox.checked = false
410408 waitForLockscreenReady();
411409
412− retryCountTextField.text = data.retryCount;
410+ retryCountTextField.text = data.retryText;
413411 var label = findChild(lockscreen, "retryCountLabel")
414412 compare(label.visible, data.shown);
415413 }