@@ -33,6 +33,7 @@ Rectangle {
33 anchors.fill: parent
33 anchors.fill: parent
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 alphaNumeric: pinPadCheckBox.checked
37 alphaNumeric: pinPadCheckBox.checked
37 minPinLength: minPinLengthTextField.text
38 minPinLength: minPinLengthTextField.text
38 maxPinLength: maxPinLengthTextField.text
39 maxPinLength: maxPinLengthTextField.text
@@ -309,6 +310,16 @@ Rectangle {
310 wait(0) // Trigger event loop to make sure the animation would start running
311 wait(0) // Trigger event loop to make sure the animation would start running
311 compare(animation.running, data.animation)
312 compare(animation.running, data.animation)
313+ if (data.animation) {
314+ if (data.alphanumeric) {
315+ tryCompare(inputField, "placeholderText", lockscreen.wrongPlaceholderText)
316+ tryCompare(inputField, "placeholderText", lockscreen.placeholderText)
318+ var label = findChild(lockscreen, "pinentryFieldPlaceHolder");
319+ tryCompare(label, "text", lockscreen.wrongPlaceholderText)
320+ tryCompare(label, "text", lockscreen.placeholderText)
313 // wait for animation to finish to not disturb other tests
324 // wait for animation to finish to not disturb other tests
314 tryCompare(animation, "running", false)
325 tryCompare(animation, "running", false)
@@ -411,10 +422,16 @@ Rectangle {
411 var infoPopup = findChild(root, "infoPopup");
422 var infoPopup = findChild(root, "infoPopup");
412 compare(infoPopup.title, "foo");
423 compare(infoPopup.title, "foo");
413 compare(infoPopup.text, "bar");
424 compare(infoPopup.text, "bar");
426+ signalSpy.signalName = "infoPopupConfirmed"
414 var okButton = findChild(root, "infoPopupOkButton");
429 var okButton = findChild(root, "infoPopupOkButton");
415 mouseClick(okButton, okButton.width / 2, okButton.height / 2);
430 mouseClick(okButton, okButton.width / 2, okButton.height / 2);
417 tryCompareFunction(function() { return findChild(root, "infoPopup") === null}, true);
432 tryCompareFunction(function() { return findChild(root, "infoPopup") === null}, true);
434+ tryCompare(signalSpy, "count", 1);
420 function test_infoTextDisplay_data() {
437 function test_infoTextDisplay_data() {
@@ -433,4 +450,9 @@ Rectangle {
433 compare(label.visible, data.shown);
450 compare(label.visible, data.shown);