@@ -296,6 +296,20 @@ Rectangle {
296 phoneNumber: "+447812221111"
296 phoneNumber: "+447812221111"
300+ id: fakeDismissTimer
301+ property bool running: false
308+ function restart() {
299 UnityTestCase {
313 UnityTestCase {
300 id: testCase
314 id: testCase
301 name: "Shell"
315 name: "Shell"
@@ -333,6 +347,11 @@ Rectangle {
333 var launcher = findChild(shell, "launcher");
347 var launcher = findChild(shell, "launcher");
334 launcherShowDashHomeSpy.target = launcher;
348 launcherShowDashHomeSpy.target = launcher;
350+ var panel = findChild(launcher, "launcherPanel");
353+ panel.dismissTimer = fakeDismissTimer;
336 waitForGreeterToStabilize();
355 waitForGreeterToStabilize();
@@ -1240,10 +1259,6 @@ Rectangle {
1241 var launcher = findChild(shell, "launcher");
1260 var launcher = findChild(shell, "launcher");
1243− // ensure the launcher dimissal timer never gets triggered during the test run
1244− var dismissTimer = findInvisibleChild(launcher, "dismissTimer");
1245− dismissTimer.interval = 60 * 60 * 1000;
1247 dragLauncherIntoView();
1262 dragLauncherIntoView();
1249 // Emulate a tap with a finger, where the touch position drifts during the tap.
1264 // Emulate a tap with a finger, where the touch position drifts during the tap.