Merge lp:~mterry/unity8/hide-greeter-on-focus-request into lp:unity8
- hide-greeter-on-focus-request
- Merge into trunk
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Michał Sawicz | ||||||||||||
Approved revision: | 652 | ||||||||||||
Merged at revision: | 836 | ||||||||||||
Proposed branch: | lp:~mterry/unity8/hide-greeter-on-focus-request | ||||||||||||
Merge into: | lp:unity8 | ||||||||||||
Prerequisite: | lp:~elopio/unity8/use_fake_instead_of_messaging | ||||||||||||
Diff against target: |
151 lines (+65/-13) 5 files modified
qml/Shell.qml (+5/-12) tests/autopilot/unity8/application_lifecycle/tests/__init__.py (+4/-1) tests/autopilot/unity8/application_lifecycle/tests/test_application_lifecycle.py (+29/-0) tests/autopilot/unity8/process_helpers.py (+16/-0) tests/qmltests/tst_Shell.qml (+11/-0) |
||||||||||||
To merge this branch: | bzr merge lp:~mterry/unity8/hide-greeter-on-focus-request | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michał Sawicz | Approve | ||
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Michael Zanetti | Pending | ||
Albert Astals Cid | Pending | ||
Review via email: mp+215749@code.launchpad.net |
This proposal supersedes a proposal from 2014-01-15.
Commit message
When an application requests focus, handle it in Shell.qml by hiding the greeter and stopping any edge demo.
Description of the change
When an application requests focus, handle it in Shell.qml by hiding the greeter and stopping any edge demo.
This was previously being done in Stage.qml, which wasn't responsive when the greeter was up.
* Are there any related MPs required for this MP to build/function as expected? Please list.
- Yes:
https:/
https:/
* Did you perform an exploratory manual test run of your code change and any related functionality?
- Yes. I tested this manually, launching apps in the adb terminal.
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
- N/A
* If you changed the UI, has there been a design review?
- N/A
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
Michael Zanetti (mzanetti) wrote : Posted in a previous version of this proposal | # |
This should probably have an autopilot test
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
PASSED: Continuous integration, rev:639
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:640
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michael Terry (mterry) wrote : Posted in a previous version of this proposal | # |
OK, there are two main 'focus an app' situations: opening the app for the first time and focusing the app that used to be open under the greeter. This bug was actually about situation 2.
I've added an autopilot test for situation 1, since that was lacking too. But situation 2 is hard for autopilot. We have to trigger a power button press to lock the greeter. I'm consulting with pitti about how to do it.
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
PASSED: Continuous integration, rev:641
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michael Terry (mterry) wrote : Posted in a previous version of this proposal | # |
OK mzanetti, this now has the requested autopilot tests.
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:642
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:642
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Francis Ginther (fginther) wrote : Posted in a previous version of this proposal | # |
Touch tests failed due to an issue with phablet-tools on the adb host. It has been resolved and this build has been restarted.
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:642
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michael Terry (mterry) wrote : Posted in a previous version of this proposal | # |
The new autopilot test unity8.
Is there a trick to get a more jenkins-like environment?
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:642
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal | # |
Michael Terry (mterry) wrote : Posted in a previous version of this proposal | # |
I did try those steps. Still can't reproduce.
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:643
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:644
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:644
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:644
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal | # |
Doesn't merge cleanly anymore
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:645
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:645
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:646
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michał Sawicz (saviq) wrote : Posted in a previous version of this proposal | # |
Hey, what's the status of this?
Michael Terry (mterry) wrote : Posted in a previous version of this proposal | # |
There seems to be a crash during AP tests... I wouldn't think this branch would introduce a crash. Is there a known crash problem in trunk?
Michał Sawicz (saviq) wrote : Posted in a previous version of this proposal | # |
Yeah, qt crashes - is fixed in 5.2.
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal | # |
Unfortunately doesn't merge cleanly again against trunk ^_^
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:647
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:647
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:647
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal | # |
Doesn't merge cleanly with trunk again :-/
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:648
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal | # |
So i installed everything http://
autopilot run unity8.
i get
Traceback (most recent call last):
File "/usr/lib/
return fn(*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
raise mismatch_error
MismatchError: After 10.0 seconds test on Greeter.created failed: True != dbus.Boolean(False, variant_level=1)
Mike, can you reproduce this? Does it work for you?
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal | # |
Text conflict in qml/Shell.qml
Michael Terry (mterry) wrote : Posted in a previous version of this proposal | # |
Albert, I've merged from trunk and hopefully made the test more robust. Try now.
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:649
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:650
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:649
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal | # |
I think we have a problem here and is that autopilot tests are run with powerd-cli forcing the display on and thus your lock_unity does not work on CI
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal | # |
Confirmed with Saviq that this happens so we need to find a solution here.
Michał Sawicz (saviq) wrote : Posted in a previous version of this proposal | # |
Also, please do not rely on real apps, use the fixtures from UITK, see lp:~elopio/unity8/use_fake_instead_of_messaging/ for an example.
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal | # |
And there is a .THIS file that needs to go away
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:651
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
Michał Sawicz (saviq) wrote : | # |
lock_unity won't work during test runs, as powerd is locked with screen on during those... Either powerd would need to be fixed to change the power state on explicit power key press (screen does go off already), or think of something to make unity8 lock regardless of powerd's requests...
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:652
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:652
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
Michael Terry (mterry) wrote : | # |
Yup, Saviq. I've got a branch to fix powerd: https:/
Michał Sawicz (saviq) wrote : | # |
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes.
* Did CI run pass? If not, please explain why.
Otto broken, two failing tests on mako require the powerd changes.
Preview Diff
1 | === modified file 'qml/Shell.qml' |
2 | --- qml/Shell.qml 2014-04-01 18:35:33 +0000 |
3 | +++ qml/Shell.qml 2014-04-14 19:50:06 +0000 |
4 | @@ -240,6 +240,8 @@ |
5 | function show(focusApp) { |
6 | shown = true; |
7 | panel.indicators.hide(); |
8 | + edgeDemo.stopDemo(); |
9 | + greeter.hide(); |
10 | if (!ApplicationManager.focusedApplicationId && ApplicationManager.count > 0 && focusApp) { |
11 | ApplicationManager.focusApplication(ApplicationManager.get(0).appId); |
12 | } |
13 | @@ -267,12 +269,6 @@ |
14 | stages.hide(); |
15 | } |
16 | } |
17 | - |
18 | - // If any app is focused when greeter is open, it's due to a user action |
19 | - // like a snap decision (say, an incoming call). |
20 | - // TODO: these should be protected to only unlock for certain applications / certain usecases |
21 | - // potentially only in connection with a notification. |
22 | - greeter.hide() |
23 | } |
24 | |
25 | onApplicationAdded: { |
26 | @@ -559,12 +555,9 @@ |
27 | } |
28 | } |
29 | onDashSwipeChanged: if (dashSwipe && stages.shown) dash.setCurrentScope("clickscope", false, true) |
30 | - onLauncherApplicationSelected:{ |
31 | - if (edgeDemo.running) |
32 | - return; |
33 | - |
34 | - greeter.hide() |
35 | - shell.activateApplication(appId) |
36 | + onLauncherApplicationSelected: { |
37 | + if (!edgeDemo.running) |
38 | + shell.activateApplication(appId) |
39 | } |
40 | onShownChanged: { |
41 | if (shown) { |
42 | |
43 | === modified file 'tests/autopilot/unity8/application_lifecycle/tests/__init__.py' |
44 | --- tests/autopilot/unity8/application_lifecycle/tests/__init__.py 2014-04-14 19:50:06 +0000 |
45 | +++ tests/autopilot/unity8/application_lifecycle/tests/__init__.py 2014-04-14 19:50:06 +0000 |
46 | @@ -35,7 +35,10 @@ |
47 | process_helpers.unlock_unity(unity_proxy) |
48 | |
49 | def create_test_application(self): |
50 | - fake_application = fixture_setup.FakeApplication() |
51 | + desktop_file_dict = fixture_setup.DEFAULT_DESKTOP_FILE_DICT |
52 | + desktop_file_dict.update({'X-Ubuntu-Single-Instance': 'true'}) |
53 | + fake_application = fixture_setup.FakeApplication( |
54 | + desktop_file_dict=desktop_file_dict) |
55 | self.useFixture(fake_application) |
56 | return ( |
57 | fake_application.qml_file_path, fake_application.desktop_file_path) |
58 | |
59 | === modified file 'tests/autopilot/unity8/application_lifecycle/tests/test_application_lifecycle.py' |
60 | --- tests/autopilot/unity8/application_lifecycle/tests/test_application_lifecycle.py 2014-04-14 19:50:06 +0000 |
61 | +++ tests/autopilot/unity8/application_lifecycle/tests/test_application_lifecycle.py 2014-04-14 19:50:06 +0000 |
62 | @@ -24,8 +24,11 @@ |
63 | import logging |
64 | import os |
65 | |
66 | +from autopilot.matchers import Eventually |
67 | from autopilot.platform import model |
68 | +from testtools.matchers import Equals |
69 | |
70 | +from unity8 import process_helpers |
71 | from unity8.application_lifecycle import tests |
72 | |
73 | |
74 | @@ -86,3 +89,29 @@ |
75 | self.swipe_screen_from_right() |
76 | |
77 | self.assert_current_focused_application(application1_name) |
78 | + |
79 | + def test_greeter_hides_on_app_open(self): |
80 | + """Greeter should hide when an app is opened""" |
81 | + process_helpers.lock_unity() |
82 | + greeter = self.main_window.get_greeter() |
83 | + self.assertThat(greeter.created, Eventually(Equals(True))) |
84 | + |
85 | + application_name = self.launch_fake_app() |
86 | + self.assertThat(greeter.created, Eventually(Equals(False))) |
87 | + self.assert_current_focused_application(application_name) |
88 | + |
89 | + def test_greeter_hides_on_app_focus(self): |
90 | + """Greeter should hide when an app is re-focused""" |
91 | + application_name = self.launch_fake_app() |
92 | + self.assert_current_focused_application(application_name) |
93 | + |
94 | + self.main_window.show_dash_swiping() |
95 | + self.assert_current_focused_application('') |
96 | + |
97 | + process_helpers.lock_unity() |
98 | + greeter = self.main_window.get_greeter() |
99 | + self.assertThat(greeter.created, Eventually(Equals(True))) |
100 | + |
101 | + self.launch_upstart_application(application_name) |
102 | + self.assertThat(greeter.created, Eventually(Equals(False))) |
103 | + self.assert_current_focused_application(application_name) |
104 | |
105 | === modified file 'tests/autopilot/unity8/process_helpers.py' |
106 | --- tests/autopilot/unity8/process_helpers.py 2014-02-23 01:46:02 +0000 |
107 | +++ tests/autopilot/unity8/process_helpers.py 2014-04-14 19:50:06 +0000 |
108 | @@ -89,6 +89,22 @@ |
109 | break |
110 | |
111 | |
112 | +def lock_unity(unity_proxy_obj=None): |
113 | + """Helper function that attempts to lock the unity greeter.""" |
114 | + import evdev, time |
115 | + uinput = evdev.UInput(name='unity8-autopilot-power-button', |
116 | + devnode='/dev/autopilot-uinput') |
117 | + # One press and release to turn screen off (locking unity) |
118 | + uinput.write(evdev.ecodes.EV_KEY, evdev.ecodes.KEY_POWER, 1) |
119 | + uinput.write(evdev.ecodes.EV_KEY, evdev.ecodes.KEY_POWER, 0) |
120 | + uinput.syn() |
121 | + time.sleep(1) |
122 | + # And another press and release to turn screen back on |
123 | + uinput.write(evdev.ecodes.EV_KEY, evdev.ecodes.KEY_POWER, 1) |
124 | + uinput.write(evdev.ecodes.EV_KEY, evdev.ecodes.KEY_POWER, 0) |
125 | + uinput.syn() |
126 | + |
127 | + |
128 | def restart_unity_with_testability(*args): |
129 | """Restarts (or starts) unity with testability enabled. |
130 | |
131 | |
132 | === modified file 'tests/qmltests/tst_Shell.qml' |
133 | --- tests/qmltests/tst_Shell.qml 2014-04-02 15:59:40 +0000 |
134 | +++ tests/qmltests/tst_Shell.qml 2014-04-14 19:50:06 +0000 |
135 | @@ -554,5 +554,16 @@ |
136 | |
137 | tryCompare(searchIndicator, "opacity", 0); |
138 | } |
139 | + |
140 | + function test_focusRequestedHidesGreeter() { |
141 | + var greeter = findChild(shell, "greeter") |
142 | + |
143 | + greeter.show() |
144 | + tryCompare(greeter, "showProgress", 1) |
145 | + |
146 | + ApplicationManager.focusRequested("notes-app") |
147 | + tryCompare(greeter, "showProgress", 0) |
148 | + waitUntilApplicationWindowIsFullyVisible() |
149 | + } |
150 | } |
151 | } |
FAILED: Continuous integration, rev:639 jenkins. qa.ubuntu. com/job/ unity8- ci/2076/ jenkins. qa.ubuntu. com/job/ generic- mediumtests- trusty/ 2374 jenkins. qa.ubuntu. com/job/ generic- mediumtests- trusty- touch/2247 jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- trusty/ 930 jenkins. qa.ubuntu. com/job/ unity8- trusty- amd64-ci/ 598 jenkins. qa.ubuntu. com/job/ unity8- trusty- armhf-ci/ 600 jenkins. qa.ubuntu. com/job/ unity8- trusty- armhf-ci/ 600/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ unity8- trusty- i386-ci/ 598 jenkins. qa.ubuntu. com/job/ autopilot- testrunner- otto-trusty/ 2084 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/2376 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/2376/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- armhf/2247 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- armhf/2247/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- mako/4701 s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 3128
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/2076/ rebuild
http://