Merge lp:~dandrader/unity8/tutorial-launcher-gap into lp:unity8
| Status: | Merged |
|---|---|
| Approved by: | Albert Astals Cid on 2015-07-09 |
| Approved revision: | 1836 |
| Merged at revision: | 1863 |
| Proposed branch: | lp:~dandrader/unity8/tutorial-launcher-gap |
| Merge into: | lp:unity8 |
| Prerequisite: | lp:~dandrader/unity8/fixOrientedShellTests |
| Diff against target: |
98 lines (+47/-7) 2 files modified
qml/Tutorial/TutorialLeft.qml (+16/-6) tests/qmltests/Tutorial/tst_Tutorial.qml (+31/-1) |
| To merge this branch: | bzr merge lp:~dandrader/unity8/tutorial-launcher-gap |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | 2015-07-02 | Needs Fixing on 2015-07-15 |
| Albert Astals Cid (community) | 2015-07-02 | Approve on 2015-07-09 | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2015-06-17.
Commit Message
Ensure tutorial doesn't let user drag the launcher past screen edge.
This was because the bouncing animation on the left added a bit of extra offset to the launcher. So I just made sure that offset doesn't go past the screen edge as the user drags the launcher out.
And added a test.
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
No
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* Did you make sure that your branch does not contain spurious tags?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
Not applicable
* If you changed the UI, has there been a design review?
Not applicable
* Did you have a look at the warnings when running tests? Can they be reduced?
The tons of warnings were already there.
| Albert Astals Cid (aacid) wrote : | # |
Maybe it makes sense to base this on top of lp:~dandrader/unity8/fixOrientedShellTests so that the tutorial changes that are not because of the bugfix don't appear on the diff?
Also the merging once the other one lands will be easier.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1834
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
running make testTutorial fails in the function you just added (xvfbtestTutorial works)
Can you please check?
| Albert Astals Cid (aacid) wrote : | # |
FAIL! : qmltestrunner:
Loc: [/home/
is the error i get
| Daniel d'Andrada (dandrader) wrote : | # |
On 03/07/15 06:19, Albert Astals Cid wrote:
> FAIL! : qmltestrunner:
> Loc: [/home/
>
> is the error i get
"make xvfbtestTutorial" has been running for a while here (in a loop)
and didn't fail yet. :-/
- 1835. By Daniel d'Andrada <dandrader@panzer> on 2015-07-06
-
Merge trunk
[ Albert Astals Cid ]
* Save screenshots of suspended apps to disk
* Set width of title label when inside the title row (LP: #1461979)
* qmluitests was renamed to uitests
[ CI Train Bot ]
* Resync trunk.
[ Daniel d'Andrada ]
* Fix tst_OrientedShell and tst_Tutorial (LP: #1469761, #1466947)
[ Leo Arias ]
* Reorganized the python test helper modules. Deprecated the
unity8.shell.emulators namespace. (LP: #1306340)
[ Leonardo Arias Fonseca ]
* Reorganized the python test helper modules. Deprecated the
unity8.shell.emulators namespace. (LP: #1306340)
[ Lukáš Tinkl ]
* fix PO files extraction
[ Michael Zanetti ]
* Make use of QInputDeviceInfo in order to automatically switch
between usage modes and hide the OSK.
[ Nick Dedekind ]
* Fixed qtmultimedia mock which was generating errors in tests
[ Richard Huddie ]
* Reorganized the python test helper modules. Deprecated the
unity8.shell.emulators namespace. (LP: #1306340)
* Implement full-shell rotation (LP: #1210199)
| Albert Astals Cid (aacid) wrote : | # |
> On 03/07/15 06:19, Albert Astals Cid wrote:
> > FAIL! : qmltestrunner:
> returned FALSE. ()
> > Loc: [/home/
> gap/tests/
> >
> > is the error i get
>
> "make xvfbtestTutorial" has been running for a while here (in a loop)
> and didn't fail yet. :-/
Maybe my wording was weird, what i meant is that "make xvfbtestTutorial" works and "make testTutorial" fails.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1835
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
FWIW
=== modified file 'tests/
--- tests/qmltests/
+++ tests/qmltests/
@@ -332,14 +332,14 @@
// Start a drag, make sure animation stops
- touchFlick(shell, 0, halfHeight, units.gu(3), halfHeight, true, false);
+ touchFlick(shell, 0, halfHeight, units.gu(4), halfHeight, true, false);
// Continue drag, make sure we don't create a gap on the left hand side
- touchFlick(shell, units.gu(3), halfHeight, shell.width, halfHeight, false, false);
+ touchFlick(shell, units.gu(4), halfHeight, shell.width, halfHeight, false, false);
Fixes "make testTutorial" for me
- 1836. By Albert Astals Cid on 2015-07-09
-
Make test more reliable
| Daniel d'Andrada (dandrader) wrote : | # |
On 09/07/15 09:39, Albert Astals Cid wrote:
> FWIW
>
> === modified file 'tests/
> --- tests/qmltests/
> +++ tests/qmltests/
> @@ -332,14 +332,14 @@
> verify(
>
> // Start a drag, make sure animation stops
> - touchFlick(shell, 0, halfHeight, units.gu(3), halfHeight, true, false);
> + touchFlick(shell, 0, halfHeight, units.gu(4), halfHeight, true, false);
> verify(
> verify(
> verify(launcher.x > 0);
> compare(launcher.x, teaseAnimation.
>
> // Continue drag, make sure we don't create a gap on the left hand side
> - touchFlick(shell, units.gu(3), halfHeight, shell.width, halfHeight, false, false);
> + touchFlick(shell, units.gu(4), halfHeight, shell.width, halfHeight, false, false);
> verify(
> compare(
> compare(launcher.x, 0);
>
> Fixes "make testTutorial" for me
Added your patch.
| Albert Astals Cid (aacid) 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.
AP needs work :/
* Did you make sure that the branch does not contain spurious tags?
Yes
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1836
http://
Executed test runs:
FAILURE: http://
SUCCESS: 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:1836
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: 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:1836
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

FAILED: Continuous integration, rev:1812 jenkins. qa.ubuntu. com/job/ unity8- ci/5816/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- wily-touch/ 108/console jenkins. qa.ubuntu. com/job/ unity8- wily-amd64- ci/94/console jenkins. qa.ubuntu. com/job/ unity8- wily-i386- ci/94/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- wily-armhf/ 108/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/unity8- ci/5816/ rebuild
http://