@@ -33,6 +33,7 @@ Rectangle {
3333 anchors.fill: parent
3434 anchors.rightMargin: units.gu(30)
3535 placeholderText: "Please enter your PIN"
36+ wrongPlaceholderText: "Incorrect PIN"
3637 alphaNumeric: pinPadCheckBox.checked
3738 minPinLength: minPinLengthTextField.text
3839 maxPinLength: maxPinLengthTextField.text
@@ -309,6 +310,16 @@ Rectangle {
309310
310311 wait(0) // Trigger event loop to make sure the animation would start running
311312 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)
317+ } else {
318+ var label = findChild(lockscreen, "pinentryFieldPlaceHolder");
319+ tryCompare(label, "text", lockscreen.wrongPlaceholderText)
320+ tryCompare(label, "text", lockscreen.placeholderText)
321+ }
322+ }
312323
313324 // wait for animation to finish to not disturb other tests
314325 tryCompare(animation, "running", false)
@@ -411,10 +422,16 @@ Rectangle {
411422 var infoPopup = findChild(root, "infoPopup");
412423 compare(infoPopup.title, "foo");
413424 compare(infoPopup.text, "bar");
425+
426+ signalSpy.signalName = "infoPopupConfirmed"
427+ signalSpy.clear();
428+
414429 var okButton = findChild(root, "infoPopupOkButton");
415430 mouseClick(okButton, okButton.width / 2, okButton.height / 2);
416431
417432 tryCompareFunction(function() { return findChild(root, "infoPopup") === null}, true);
433+
434+ tryCompare(signalSpy, "count", 1);
418435 }
419436
420437 function test_infoTextDisplay_data() {
@@ -433,4 +450,9 @@ Rectangle {
433450 compare(label.visible, data.shown);
434451 }
435452 }
453+
454+ SignalSpy {
455+ id: signalSpy
456+ target: lockscreen
457+ }
436458}