Merge lp:~osomon/webbrowser-app/workaround-1526940 into lp:webbrowser-app

Proposed by Olivier Tilloy
Status: Merged
Approved by: Michael Sheldon
Approved revision: 1298
Merged at revision: 1299
Proposed branch: lp:~osomon/webbrowser-app/workaround-1526940
Merge into: lp:webbrowser-app
Diff against target: 15 lines (+4/-1)
1 file modified
tests/unittests/qml/WebbrowserTestCase.qml (+4/-1)
To merge this branch: bzr merge lp:~osomon/webbrowser-app/workaround-1526940
Reviewer Review Type Date Requested Status
Michael Sheldon (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+280771@code.launchpad.net

Commit message

Work around what appears to be a regression in the UITK by specifying a non-null delay when swiping a list item to delete it in unit tests.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

Looks good, and makes the tests reliable again (the CI failures are unrelated, caused by libubuntugestures5 attempting to overwrite a file in libubuntugestures)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/unittests/qml/WebbrowserTestCase.qml'
--- tests/unittests/qml/WebbrowserTestCase.qml 2015-11-17 17:19:13 +0000
+++ tests/unittests/qml/WebbrowserTestCase.qml 2015-12-16 21:29:34 +0000
@@ -48,7 +48,10 @@
48 }48 }
4949
50 function swipeToDeleteAndConfirm(listitem) {50 function swipeToDeleteAndConfirm(listitem) {
51 flick(listitem, listitem.width / 10, listitem.height / 2, listitem.width / 2, 0)51 flick(listitem,
52 listitem.width / 10, listitem.height / 2, listitem.width / 2, 0,
53 // work around https://launchpad.net/bugs/1526940 by specifying a non-null delay
54 -1, -1, Qt.LeftButton, Qt.NoModifiers, 1)
52 var confirm = findChild(listitem, "actionbutton_leadingAction.delete")55 var confirm = findChild(listitem, "actionbutton_leadingAction.delete")
53 clickItem(confirm)56 clickItem(confirm)
54 }57 }

Subscribers

People subscribed via source and target branches

to status/vote changes: