Merge lp:~om26er/unity/test_alt_arrowkeys into lp:unity
Proposed by
Omer Akram
Status: | Merged |
---|---|
Approved by: | Omer Akram |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2603 |
Proposed branch: | lp:~om26er/unity/test_alt_arrowkeys |
Merge into: | lp:unity |
Diff against target: |
60 lines (+25/-15) 2 files modified
manual-tests/Hud.txt (+0/-15) tests/autopilot/unity/tests/test_hud.py (+25/-0) |
To merge this branch: | bzr merge lp:~om26er/unity/test_alt_arrowkeys |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brandon Schaefer (community) | Approve | ||
Thomi Richards (community) | Needs Fixing | ||
Review via email: mp+120255@code.launchpad.net |
Commit message
Tests that Alt+ArrowKey events are correctly passed to the active window when not interacting with Unity.
Description of the change
Tests that Alt+ArrowKey events are correctly passed to the active window when not interacting with Unity.
since we can't read text from terminal, we are writing it to a text file and reading from there if it matches the expected.
thx Thomi
To post a comment you must log in.
Hi Omer,
42 + self.keyboard. type('echo \"')
I don't think you need the \ here. Python doesn't need it (you can use double quotes inside a single quoted string just fine), and I'm pretty sure the keyboard emulator doesn't need it either...
52 + self.keyboard. type('\ " > /tmp/ap_ test_alt_ keys')
.. same here
Otherwise this test looks good.