@@ -56,9 +56,9 @@ Item {
58 SignalSpy {
58 SignalSpy {
59− id: teaseSpy
59+ id: tappedSpy
60 target: greeter
60 target: greeter
61− signalName: "tease"
61+ signalName: "tapped"
64 UT.UnityTestCase {
64 UT.UnityTestCase {
@@ -323,18 +323,18 @@ Item {
323 compare(greeter.model.data(index, LightDM.UserRoles.BackgroundPathRole), "")
323 compare(greeter.model.data(index, LightDM.UserRoles.BackgroundPathRole), "")
326− function test_teasingArea_data() {
326+ function test_tappedSignal_data() {
328− {tag: "left", posX: units.gu(2), leftPressed: true, rightPressed: false},
328+ {tag: "left", posX: units.gu(2)},
329− {tag: "right", posX: greeter.width - units.gu(2), leftPressed: false, rightPressed: true}
329+ {tag: "right", posX: greeter.width - units.gu(2)}
333− function test_teasingArea(data) {
333+ function test_tappedSignal(data) {
334− teaseSpy.clear()
334+ select_user("no-password");
335− mouseClick(greeter, data.posX, greeter.height - units.gu(1))
336+ tap(greeter, data.posX, greeter.height - units.gu(1))
337− tryCompare(teaseSpy, "count", 1)
337+ tryCompare(tappedSpy, "count", 1)
340 function test_teaseLockedUnlocked_data() {
340 function test_teaseLockedUnlocked_data() {
@@ -345,18 +345,18 @@ Item {
347 function test_teaseLockedUnlocked(data) {
347 function test_teaseLockedUnlocked(data) {
348− teaseSpy.clear()
348+ tappedSpy.clear()
349 greeter.locked = data.locked;
349 greeter.locked = data.locked;
351− mouseClick(greeter, greeter.width - units.gu(5), greeter.height - units.gu(1));
351+ tap(greeter, greeter.width - units.gu(5), greeter.height - units.gu(1));
353 if (!data.locked || data.narrow) {
353 if (!data.locked || data.narrow) {
354− teaseSpy.wait()
354+ tappedSpy.wait()
355− tryCompare(teaseSpy, "count", 1);
355+ tryCompare(tappedSpy, "count", 1);
357 // waiting 100ms to make sure nothing happens
357 // waiting 100ms to make sure nothing happens
358 wait(100);
358 wait(100);
359− compare(teaseSpy.count, 0, "Greeter teasing not disabled even though it's locked.");
359+ compare(tappedSpy.count, 0, "Greeter teasing not disabled even though it's locked.");
362 // Reset value
362 // Reset value