@@ -34,10 +34,10 @@ Rectangle {
34 anchors.rightMargin: units.gu(30)
34 anchors.rightMargin: units.gu(30)
35 placeholderText: "Please enter your PIN"
35 placeholderText: "Please enter your PIN"
36 wrongPlaceholderText: "Incorrect PIN"
36 wrongPlaceholderText: "Incorrect PIN"
37+ retryText: retryCountTextField.text
37 alphaNumeric: pinPadCheckBox.checked
38 alphaNumeric: pinPadCheckBox.checked
38 minPinLength: minPinLengthTextField.text
39 minPinLength: minPinLengthTextField.text
39 maxPinLength: maxPinLengthTextField.text
40 maxPinLength: maxPinLengthTextField.text
40− retryCount: retryCountTextField.text
41 username: "Lola"
41 username: "Lola"
42 background: "../../../qml/graphics/phone_background.jpg"
42 background: "../../../qml/graphics/phone_background.jpg"
43 infoText: infoTextTextField.text
43 infoText: infoTextTextField.text
@@ -118,7 +118,7 @@ Rectangle {
118 TextField {
118 TextField {
119 id: retryCountTextField
119 id: retryCountTextField
120 width: units.gu(7)
120 width: units.gu(7)
121− text: "3"
121+ text: "3 retries left"
124 text: "Retries left"
124 text: "Retries left"
@@ -398,10 +398,8 @@ Rectangle {
399 function test_retryDisplay_data() {
399 function test_retryDisplay_data() {
401− {tag: "0", retryCount: 0, shown: true},
401+ {tag: "empty", retryText: "", shown: false},
402− {tag: "1", retryCount: 1, shown: true},
402+ {tag: "3 retries left", retryText: "3 retries left", shown: true},
403− {tag: "3", retryCount: 3, shown: true},
404− {tag: "-1", retryCount: -1, shown: false},
@@ -409,7 +407,7 @@ Rectangle {
409 pinPadCheckBox.checked = false
407 pinPadCheckBox.checked = false
410 waitForLockscreenReady();
408 waitForLockscreenReady();
412− retryCountTextField.text = data.retryCount;
410+ retryCountTextField.text = data.retryText;
413 var label = findChild(lockscreen, "retryCountLabel")
411 var label = findChild(lockscreen, "retryCountLabel")
414 compare(label.visible, data.shown);
412 compare(label.visible, data.shown);