Merge lp:~renatofilho/address-book-app/startup_time into lp:~fboucault/address-book-app/startup_time

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Merged at revision: 646
Proposed branch: lp:~renatofilho/address-book-app/startup_time
Merge into: lp:~fboucault/address-book-app/startup_time
Diff against target: 33 lines (+10/-0)
1 file modified
tests/qml/tst_ContactList.qml (+10/-0)
To merge this branch: bzr merge lp:~renatofilho/address-book-app/startup_time
Reviewer Review Type Date Requested Status
Florian Boucault Pending
Review via email: mp+310310@code.launchpad.net

Commit message

Fix tests.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/qml/tst_ContactList.qml'
2--- tests/qml/tst_ContactList.qml 2015-10-26 13:18:11 +0000
3+++ tests/qml/tst_ContactList.qml 2016-11-08 15:33:32 +0000
4@@ -38,6 +38,7 @@
5 property string callbackApplication: ""
6 property bool firstRun: true
7 property bool disableOnlineAccounts: true
8+ property bool isOnline: false
9
10 function elapsed()
11 {
12@@ -59,6 +60,12 @@
13
14 MainView {
15 id: mainView
16+ pageStack: Item {
17+ property var contactListPage: null
18+ readonly property int columns: 1
19+ readonly property bool hasKeyboard: false
20+ }
21+
22 anchors.fill: parent
23 }
24
25@@ -86,6 +93,9 @@
26
27 function cleanup()
28 {
29+ //WORKAROUND: avoid problems with async object
30+ //if the test run too fast it can cause problems with async objects
31+ wait(1000)
32 root.contactListPageObj.destroy()
33 }
34

Subscribers

People subscribed via source and target branches