Merge lp:~mzanetti/unity8/tryShell-edgepush into lp:unity8

Proposed by Michael Zanetti
Status: Rejected
Rejected by: Michael Zanetti
Proposed branch: lp:~mzanetti/unity8/tryShell-edgepush
Merge into: lp:unity8
Diff against target: 151 lines (+51/-50)
1 file modified
tests/qmltests/tst_Shell.qml (+51/-50)
To merge this branch: bzr merge lp:~mzanetti/unity8/tryShell-edgepush
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Needs Information
Unity8 CI Bot continuous-integration Approve
Review via email: mp+315879@code.launchpad.net

Commit message

add left/right edge barrier controllers to tryShell

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
n0
 * Did you perform an exploratory manual test run of your code change and any related functionality?
y3s
 * 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

To post a comment you must log in.
2802. By Michael Zanetti

cleanup

2803. By Michael Zanetti

more cleanup

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2803
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3075/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/3998
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2342
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2342
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4026
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3870
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3870/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3870
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3870/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3870
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3870/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3870
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3870/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3870
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3870/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3870
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3870/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3075/rebuild

review: Approve (continuous-integration)
2804. By Michael Zanetti

drop show launcher button, it's not needed any more

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2804
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3076/
Executed test runs:
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build/3999/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4027
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3871
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3871/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3871
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3871/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3871
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3871/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3871/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3871
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3871/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3871
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3871/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3076/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2804
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3082/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4006
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2346
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2346
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4034
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3878
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3878/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3878
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3878/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3878
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3878/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3878
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3878/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3878
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3878/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3878
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3878/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3082/rebuild

review: Approve (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

This is an improvement but still has the problem of just showing the launcher being impossible, since if you have it in autohide it will immediately hide because the mouse is not ovet the launcher, can you think of a way we could fix that?

review: Needs Information
Revision history for this message
Michael Zanetti (mzanetti) wrote :

> This is an improvement but still has the problem of just showing the launcher
> being impossible, since if you have it in autohide it will immediately hide
> because the mouse is not ovet the launcher, can you think of a way we could
> fix that?

Daniel is about to finish his testWithQtMir branch. With that, edge pushes in trySomething will start working for real, so I guess this branch is off the table now anyways... I suppose that branch will have the same issue though (mouse not hovering the launcher even though edge push works).
We should try to find a solution for that on top of the other branch.

Unmerged revisions

2804. By Michael Zanetti

drop show launcher button, it's not needed any more

2803. By Michael Zanetti

more cleanup

2802. By Michael Zanetti

cleanup

2801. By Michael Zanetti

add left/right edge push controllers to tryShell

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/qmltests/tst_Shell.qml'
2--- tests/qmltests/tst_Shell.qml 2017-01-24 07:43:54 +0000
3+++ tests/qmltests/tst_Shell.qml 2017-01-30 12:40:40 +0000
4@@ -35,6 +35,7 @@
5 import Wizard 0.1 as Wizard
6 import Utils 0.1
7 import Unity.Indicators 0.1 as Indicators
8+import Ubuntu.Components.ListItems 1.3
9
10 import "../../qml"
11 import "../../qml/Components"
12@@ -128,7 +129,7 @@
13 Shell {
14 id: __shell
15 objectName: "shell"
16- usageScenario: usageScenarioSelector.model[usageScenarioSelector.selectedIndex]
17+ usageScenario: usageScenarioSelector.values[usageScenarioSelector.selectedIndex]
18 nativeWidth: width
19 nativeHeight: height
20 orientation: shellLoader.shellOrientation
21@@ -208,17 +209,6 @@
22 }
23 }
24 Button {
25- text: "Show Launcher"
26- activeFocusOnPress: false
27- onClicked: {
28- if (shellLoader.status !== Loader.Ready)
29- return;
30-
31- var launcher = testCase.findChild(shellLoader.item, "launcher");
32- launcher.state = "visible";
33- }
34- }
35- Button {
36 text: "Print focused"
37 activeFocusOnPress: false
38 onClicked: {
39@@ -238,56 +228,36 @@
40 }
41 }
42 }
43- Label {
44- text: "LightDM mock mode"
45- }
46
47- ListItem.ItemSelector {
48- anchors { left: parent.left; right: parent.right }
49- activeFocusOnPress: false
50- model: ["single", "single-passphrase", "single-pin", "full"]
51+ ValueSelector {
52+ text: "LightDM:"
53+ values: ["single", "single-passphrase", "single-pin", "full"]
54 onSelectedIndexChanged: {
55 testCase.tearDown();
56- LightDMController.userMode = model[selectedIndex];
57+ LightDMController.userMode = values[selectedIndex];
58 shellLoader.active = true;
59 }
60 }
61- Label {
62+
63+ ValueSelector {
64+ id: sizeSelector
65 text: "Size"
66- }
67-
68- ListItem.ItemSelector {
69- id: sizeSelector
70- anchors { left: parent.left; right: parent.right }
71- activeFocusOnPress: false
72- model: ["phone", "tablet", "desktop"]
73+ values: ["phone", "tablet", "desktop"]
74 onSelectedIndexChanged: {
75- shellLoader.state = model[selectedIndex];
76+ shellLoader.state = values[selectedIndex];
77 }
78 }
79- Label {
80+
81+ ValueSelector {
82+ id: usageScenarioSelector
83 text: "Usage scenario"
84- }
85-
86- ListItem.ItemSelector {
87- id: usageScenarioSelector
88- anchors { left: parent.left; right: parent.right }
89- activeFocusOnPress: false
90- model: ["phone", "tablet", "desktop"]
91- }
92- MouseTouchEmulationCheckbox {
93- id: mouseEmulation
94- checked: true
95- }
96- Label {
97+ values: ["phone", "tablet", "desktop"]
98+
99+ }
100+
101+ ValueSelector {
102 text: "Ctrl key as"
103- }
104-
105- ListItem.ItemSelector {
106- id: ctrlModifier
107- anchors { left: parent.left; right: parent.right }
108- activeFocusOnPress: false
109- model: ["Ctrl", "Alt", "Super"]
110+ values: ["Ctrl", "Alt", "Super"]
111 onSelectedIndexChanged: {
112 var keyMapper = testCase.findChild(shellContainer, "physicalKeysMapper");
113 keyMapper.controlInsteadOfAlt = selectedIndex == 1;
114@@ -295,6 +265,37 @@
115 }
116 }
117
118+ MouseTouchEmulationCheckbox {
119+ id: mouseEmulation
120+ checked: true
121+ }
122+
123+ EdgeBarrierControls {
124+ id: edgeBarrierControls
125+ text: "Drag for left edge push"
126+ width: parent.width
127+ Component.onCompleted: {
128+ var launcher = testCase.findChild(shellContainer, "launcher");
129+ target = testCase.findChild(launcher, "edgeBarrierController");
130+ }
131+ onDragged: {
132+ var launcher = testCase.findChild(shellContainer, "launcher");
133+ launcher.pushEdge(amount);
134+ }
135+ }
136+ EdgeBarrierControls {
137+ text: "Drag for right edge push"
138+ width: parent.width
139+ Component.onCompleted: {
140+ var stage = testCase.findChild(shellContainer, "stage");
141+ target = testCase.findChild(stage, "edgeBarrierController");
142+ }
143+ onDragged: {
144+ var stage = testCase.findChild(shellContainer, "stage");
145+ stage.pushRightEdge(amount);
146+ }
147+ }
148+
149 Row {
150 anchors { left: parent.left; right: parent.right }
151 CheckBox {

Subscribers

People subscribed via source and target branches