Merge lp:~canonical-platform-qa/ubuntu-ui-toolkit/textfield-use-osk into lp:ubuntu-ui-toolkit/staging
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Christian Dywan on 2015-06-22 | ||||
| Approved revision: | 1215 | ||||
| Merged at revision: | 1537 | ||||
| Proposed branch: | lp:~canonical-platform-qa/ubuntu-ui-toolkit/textfield-use-osk | ||||
| Merge into: | lp:ubuntu-ui-toolkit/staging | ||||
| Diff against target: |
432 lines (+235/-61) 7 files modified
debian/control (+1/-0) tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_common.py (+141/-3) tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textarea.py (+28/-5) tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py (+58/-40) tests/autopilot/ubuntuuitoolkit/tests/components/test_textinput.py (+2/-0) tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_textarea.py (+2/-11) tests/autopilot/ubuntuuitoolkit/tests/gallery/test_textinput.py (+3/-2) |
||||
| To merge this branch: | bzr merge lp:~canonical-platform-qa/ubuntu-ui-toolkit/textfield-use-osk | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | 2015-06-04 | Approve on 2015-06-22 |
| Christian Dywan | 2015-06-04 | Approve on 2015-06-22 | |
| Leo Arias | 2015-06-10 | Pending | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2015-06-03.
Commit Message
Use the real OSK for keyboard input
Description of the Change
Use the OSK in text fields to enter text.
This change will restart maliit-server with testability enabled if it is not already done. The keyboard type returned from get_keyboard() is based on whether maliit-server is running or not. Some project tests will stop maliit-server and use simulated key events, so this change will not affect that behaviour.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1199
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1199
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1202
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 1203. By Richard Huddie on 2015-06-05
-
Delay import in _go_to_end() until it is needed.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1203
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 1204. By Richard Huddie on 2015-06-05
-
Use activeFocus instead of focus property.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1204
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 1205. By Richard Huddie on 2015-06-08
-
Fix flake8 by using ToolkitException.
- 1206. By Richard Huddie on 2015-06-08
-
Docstring fix.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1205
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1206
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Richard Huddie (rhuddie) wrote : | # |
There are several failures in the test results where it is claimed that the OSK is not displayed, but the failure screenshots show that it is. I have raised a bug on ubuntu-keyboard for this: https:/
- 1207. By Richard Huddie on 2015-06-11
-
Fix test_textinput tests to use correct textfield.write() method rather than directly calling keyboard.type().
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1207
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1208. By Richard Huddie on 2015-06-11
-
Only run test which uses shift+left key combination on desktop.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1208
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1208
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Seems to be ok +1. Nice job.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1208
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 1209. By Richard Huddie on 2015-06-12
-
Merge with staging branch.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1209
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1210. By Richard Huddie on 2015-06-12
-
Fix for textarea and test_textinput failing tests.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1210
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1211. By Richard Huddie on 2015-06-17
-
Fixes for failing tests. Also wait 5 seconds after re-launching maliit-server to allow it to be ready.
- 1212. By Richard Huddie on 2015-06-17
-
Merge from staging branch.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1211
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1212
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Christian Dywan (kalikiana) wrote : | # |
+ if is_maliit_
+ configure_
+ restart_
+ return input.Keyboard.
+ else:
+ return input.Keyboard.
+
+
+def restart_
+ """Restart maliit-server with testability enabled."""
+ if is_maliit_
The if..running is redundant given that restart only occurs if that's already the case. Also the function name inherently requires that.
+ # This is needed to work around launchpad.
+ time.sleep(5)
Please use https so bug links can actually be opened.
- 1213. By Richard Huddie on 2015-06-18
-
Fix review comments. Also don't enforce en language, re-enable test_clear_
with_clear_ button as prediction is now set off. - 1214. By Richard Huddie on 2015-06-18
-
Merge from staging branch.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1214
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Richard Huddie (rhuddie) wrote : | # |
> + if is_maliit_
> + configure_
> + restart_
> + return input.Keyboard.
> + else:
> + return input.Keyboard.
> +
> +
> +def restart_
> + """Restart maliit-server with testability enabled."""
> + if is_maliit_
>
> The if..running is redundant given that restart only occurs if that's already
> the case. Also the function name inherently requires that.
>
> + # This is needed to work around launchpad.
> + time.sleep(5)
>
> Please use https so bug links can actually be opened.
Thanks for review, I've made those updates.
- 1215. By Richard Huddie on 2015-06-19
-
Set the osk language to en.
| Richard Huddie (rhuddie) wrote : | # |
I've discovered that some of the key names differ between simulated keyboard and osk.
E.g. The webbrowser tests use the key 'Enter' to navigate to a url, but on the osk the key is called 'Return'. This will cause test failures unless the key names are aligned fully.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1215
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Richard Huddie (rhuddie) wrote : | # |
See bug report for improving compatibility of OSK with simulated keyboard: https:/
| Christian Dywan (kalikiana) wrote : | # |
Thank you, looking good now (the failures in CI are false positives)!

FAILED: Continuous integration, rev:1198 jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- ci/2209/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 3081/console jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- vivid-amd64- ci/33/console jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- vivid-armhf- ci/33/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 3079/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- ui-toolkit- ci/2209/ rebuild
http://