Merge lp:~cimi/unity8/tweaks-libertine-scope into lp:unity8

Proposed by Andrea Cimitan
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 2445
Merged at revision: 2475
Proposed branch: lp:~cimi/unity8/tweaks-libertine-scope
Merge into: lp:unity8
Prerequisite: lp:~cimi/unity8/cardCreatorCache_update-on-artShapeStyle
Diff against target: 93 lines (+18/-7)
5 files modified
qml/Dash/GenericScopeView.qml (+5/-4)
tests/mocks/Unity/fake_scopes.cpp (+1/-0)
tests/qmltests/Dash/tst_Dash.qml (+10/-1)
tests/qmltests/Dash/tst_DashContent.qml (+1/-1)
tests/qmltests/Dash/tst_DashShell.qml (+1/-1)
To merge this branch: bzr merge lp:~cimi/unity8/tweaks-libertine-scope
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Albert Astals Cid (community) Approve
Review via email: mp+296658@code.launchpad.net

This proposal supersedes a proposal from 2016-06-07.

Commit message

Same tweaks we have for click scope now for libertine

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
no, but you need latest libertine-scope
 * Did you perform an exploratory manual test run of your code change and any related functionality?
y
 * 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.
Revision history for this message
Albert Astals Cid (aacid) wrote :

Looks good, Michael Z is finding a designer to decide if we should allow unfavorite or not

2445. By Andrea Cimitan

libertine can be unfavorited

Revision history for this message
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.
Waiting for it before top approving

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

FAILED: Continuous integration, rev:2444
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1423/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/1895
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/968
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/968
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=qmluitests.sh/968
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1921
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1857
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1857
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/1857
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1848
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1848/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1848
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1848/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1848
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1848/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1848
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1848/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1848
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1848/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1848
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1848/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1848
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1848/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1848
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1848/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1848
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1848/artifact/output/*zip*/output.zip

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

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

CI failure is unrelated

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

FAILED: Continuous integration, rev:2445
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1427/
Executed test runs:
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build/1899/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1925
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1861
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1861
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/1861
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1852/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1852/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1852/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1852/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1852/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1852/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1852/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1852/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1852/artifact/output/*zip*/output.zip

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

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

PASSED: Continuous integration, rev:2445
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1438/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/1914
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/977
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/977
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=qmluitests.sh/977
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1940
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1876
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1876
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/1876
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1867
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1867/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1867
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1867/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1867
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1867/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1867
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1867/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1867
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1867/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1867
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1867/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1867
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1867/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1867
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1867/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1867
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1867/artifact/output/*zip*/output.zip

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

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Dash/GenericScopeView.qml'
--- qml/Dash/GenericScopeView.qml 2016-05-27 13:52:20 +0000
+++ qml/Dash/GenericScopeView.qml 2016-06-07 13:49:49 +0000
@@ -342,8 +342,8 @@
342 }342 }
343 updateRanges();343 updateRanges();
344 clickScopeSizingHacks();344 clickScopeSizingHacks();
345 if (scope && scope.id === "clickscope") {345 if (scope && (scope.id === "clickscope" || scope.id === "libertine-scope.ubuntu_libertine-scope")) {
346 if (categoryId === "predefined" || categoryId === "local") {346 if (scope.id === "libertine-scope.ubuntu_libertine-scope" || categoryId === "predefined" || categoryId === "local") {
347 cardTool.artShapeSize = Qt.binding(function() { return Qt.size(units.gu(8), units.gu(7.5)) });347 cardTool.artShapeSize = Qt.binding(function() { return Qt.size(units.gu(8), units.gu(7.5)) });
348 cardTool.artShapeStyle = "icon";348 cardTool.artShapeStyle = "icon";
349 } else {349 } else {
@@ -367,8 +367,9 @@
367 onPxpguChanged: clickScopeSizingHacks();367 onPxpguChanged: clickScopeSizingHacks();
368368
369 function clickScopeSizingHacks() {369 function clickScopeSizingHacks() {
370 if (scope && scope.id === "clickscope" &&370 if (scope &&
371 (categoryId === "predefined" || categoryId === "local")) {371 ((scope.id === "clickscope" && (categoryId === "predefined" || categoryId === "local")) ||
372 scope.id === "libertine-scope.ubuntu_libertine-scope")) {
372 // Yeah, hackish :/373 // Yeah, hackish :/
373 if (scopeView.width > units.gu(45)) {374 if (scopeView.width > units.gu(45)) {
374 if (scopeView.width >= units.gu(70)) {375 if (scopeView.width >= units.gu(70)) {
375376
=== modified file 'tests/mocks/Unity/fake_scopes.cpp'
--- tests/mocks/Unity/fake_scopes.cpp 2016-04-29 14:57:44 +0000
+++ tests/mocks/Unity/fake_scopes.cpp 2016-06-07 13:49:49 +0000
@@ -60,6 +60,7 @@
60 addScope(new Scope("MockScope7", "MS7", false, this));60 addScope(new Scope("MockScope7", "MS7", false, this));
61 addScope(new Scope("MockScope8", "MS8", false, this));61 addScope(new Scope("MockScope8", "MS8", false, this));
62 addScope(new Scope("MockScope9", "MS9", false, this));62 addScope(new Scope("MockScope9", "MS9", false, this));
63 addScope(new Scope("libertine-scope.ubuntu_libertine-scope", "Libertine", true, this));
6364
64 Scope *longNavigationScope = new Scope(65 Scope *longNavigationScope = new Scope(
65 "LongPrimaryNavigation", "LongPrimaryNavigation", true, this, 1, false,66 "LongPrimaryNavigation", "LongPrimaryNavigation", true, this, 1, false,
6667
=== modified file 'tests/qmltests/Dash/tst_Dash.qml'
--- tests/qmltests/Dash/tst_Dash.qml 2016-06-07 13:49:49 +0000
+++ tests/qmltests/Dash/tst_Dash.qml 2016-06-07 13:49:49 +0000
@@ -58,7 +58,7 @@
58 tryCompare(dashContentList, "count", 0);58 tryCompare(dashContentList, "count", 0);
59 scopes.load();59 scopes.load();
60 tryCompare(dashContentList, "currentIndex", 0);60 tryCompare(dashContentList, "currentIndex", 0);
61 tryCompare(dashContentList, "count", 7);61 tryCompare(dashContentList, "count", 8);
62 tryCompare(scopes, "loaded", true);62 tryCompare(scopes, "loaded", true);
63 tryCompareFunction(function() {63 tryCompareFunction(function() {
64 var mockScope1Loader = findChild(dash, "scopeLoader0");64 var mockScope1Loader = findChild(dash, "scopeLoader0");
@@ -652,6 +652,15 @@
652 var tile = getCategoryDelegate("predefined", 2);652 var tile = getCategoryDelegate("predefined", 2);
653 var proportionalShape = findChildsByType(tile, "UCProportionalShape");653 var proportionalShape = findChildsByType(tile, "UCProportionalShape");
654 compare(proportionalShape.length, 1);654 compare(proportionalShape.length, 1);
655
656 dash.setCurrentScope("libertine-scope.ubuntu_libertine-scope");
657 var dashContent = findChild(dash, "dashContent");
658 tryCompare(dashContent.currentScope, "id", "libertine-scope.ubuntu_libertine-scope");
659
660 scrollToCategory("dashCategory2");
661 tile = getCategoryDelegate("2", 2);
662 proportionalShape = findChildsByType(tile, "UCProportionalShape");
663 compare(proportionalShape.length, 1);
655 }664 }
656665
657 function test_tempScopeItemXOnResize()666 function test_tempScopeItemXOnResize()
658667
=== modified file 'tests/qmltests/Dash/tst_DashContent.qml'
--- tests/qmltests/Dash/tst_DashContent.qml 2016-05-27 13:52:20 +0000
+++ tests/qmltests/Dash/tst_DashContent.qml 2016-06-07 13:49:49 +0000
@@ -124,7 +124,7 @@
124124
125 loadScopes();125 loadScopes();
126126
127 compare(dashContentList.count, 7);127 compare(dashContentList.count, 8);
128 verify(dashContentList.currentIndex >= 0 && dashContentList.currentIndex < dashContentList.count);128 verify(dashContentList.currentIndex >= 0 && dashContentList.currentIndex < dashContentList.count);
129 }129 }
130130
131131
=== modified file 'tests/qmltests/Dash/tst_DashShell.qml'
--- tests/qmltests/Dash/tst_DashShell.qml 2016-05-03 22:39:09 +0000
+++ tests/qmltests/Dash/tst_DashShell.qml 2016-06-07 13:49:49 +0000
@@ -60,7 +60,7 @@
60 tryCompare(dashContentList, "count", 0);60 tryCompare(dashContentList, "count", 0);
61 scopes.load();61 scopes.load();
62 tryCompare(dashContentList, "currentIndex", 0);62 tryCompare(dashContentList, "currentIndex", 0);
63 tryCompare(dashContentList, "count", 7);63 tryCompare(dashContentList, "count", 8);
64 tryCompare(scopes, "loaded", true);64 tryCompare(scopes, "loaded", true);
65 tryCompareFunction(function() {65 tryCompareFunction(function() {
66 var mockScope1Loader = findChild(dash, "scopeLoader0");66 var mockScope1Loader = findChild(dash, "scopeLoader0");

Subscribers

People subscribed via source and target branches