Merge lp:~brandontschaefer/unity/ap-hud-fixes-cjk-ibus into lp:unity
| Status: | Merged |
|---|---|
| Approved by: | Thomi Richards on 2012-03-31 |
| Approved revision: | 2196 |
| Merged at revision: | 2199 |
| Proposed branch: | lp:~brandontschaefer/unity/ap-hud-fixes-cjk-ibus |
| Merge into: | lp:unity |
| Diff against target: |
423 lines (+139/-81) 6 files modified
tests/autopilot/autopilot/emulators/unity/dash.py (+4/-2) tests/autopilot/autopilot/emulators/unity/hud.py (+70/-53) tests/autopilot/autopilot/emulators/unity/icons.py (+7/-0) tests/autopilot/autopilot/tests/__init__.py (+2/-0) tests/autopilot/autopilot/tests/test_hud.py (+4/-10) tests/autopilot/autopilot/tests/test_ibus.py (+52/-16) |
| To merge this branch: | bzr merge lp:~brandontschaefer/unity/ap-hud-fixes-cjk-ibus |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Thomi Richards (community) | 2012-03-29 | Approve on 2012-03-31 | |
|
Review via email:
|
|||
Commit Message
* Adds CJK autopilot test for the Hud
Description of the Change
This adds CJK test for the Hud.
| Brandon Schaefer (brandontschaefer) wrote : | # |
| Thomi Richards (thomir) wrote : | # |
In diff line 8:
Please just grab the controller instances, and do the assert and assignment from the list, like so:
controllers = DashController.
assert(
self.controller = controllers[0]
...you'll notice my assert is more explicit than yours as well. This pattern should be repeated for the Hud class.
I'm not sure where the EmbeddedIcon class ended up, but it should go in icons.py, and it should derive from SimpleLauncherIcon.
In the Hud class, the call to 'super(Hud, self).__init__()' should happen first, before anything else.
Apart from this, the tests look good. I have a feeling we can simplify these tests a lot, especially with the use of some more test scenarios, but I'm happy to merge the code with the fixes mentioned above.
- 2195. By Brandon Schaefer on 2012-03-30
-
* Fixed ap problems!
- 2196. By Brandon Schaefer on 2012-03-30
-
* Merged with trunk, and fixed an ap error I commited
| Brandon Schaefer (brandontschaefer) wrote : | # |
Ran 42 tests in 158.498s
OK
All Hud ap test pass.


This adds CJK test for the Hud.