summaryrefslogtreecommitdiff
path: root/tests/qml/processtitle/tst_processtitle.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qml/processtitle/tst_processtitle.qml')
-rw-r--r--tests/qml/processtitle/tst_processtitle.qml13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/qml/processtitle/tst_processtitle.qml b/tests/qml/processtitle/tst_processtitle.qml
index a94b7e86..a4598fbb 100644
--- a/tests/qml/processtitle/tst_processtitle.qml
+++ b/tests/qml/processtitle/tst_processtitle.qml
@@ -50,6 +50,7 @@ TestCase {
name: "ProcessTitle"
visible: true
+ property int spyTimeout: 5000 * AmTest.timeoutFactor
property int sysuiPid
ProcessStatus {
@@ -82,8 +83,8 @@ TestCase {
tryVerify(function() {
pid = AmTest.findChildProcess(sysuiPid, executable + quickArg);
return pid
- });
- wait(250);
+ }, spyTimeout);
+ wait(250 * AmTest.timeoutFactor);
verify(AmTest.cmdLine(pid).endsWith(executable + quickArg));
} else {
sigIdx = 1;
@@ -92,9 +93,9 @@ TestCase {
runStateChangedSpy.clear();
verify(ApplicationManager.startApplication(data.appId));
- runStateChangedSpy.wait();
+ runStateChangedSpy.wait(spyTimeout);
if (sigIdx === 1)
- runStateChangedSpy.wait();
+ runStateChangedSpy.wait(spyTimeout);
compare(runStateChangedSpy.signalArguments[sigIdx][0], data.appId);
compare(runStateChangedSpy.signalArguments[sigIdx][1], ApplicationObject.Running);
@@ -109,8 +110,8 @@ TestCase {
runStateChangedSpy.clear();
ApplicationManager.stopAllApplications();
- runStateChangedSpy.wait();
- runStateChangedSpy.wait();
+ runStateChangedSpy.wait(spyTimeout);
+ runStateChangedSpy.wait(spyTimeout);
compare(runStateChangedSpy.signalArguments[1][1], ApplicationObject.NotRunning);
}
}