Merge lp:~aacid/unity8/vjog_compiz_workaround into lp:unity8

Proposed by Albert Astals Cid
Status: Merged
Approved by: Michael Zanetti
Approved revision: 759
Merged at revision: 768
Proposed branch: lp:~aacid/unity8/vjog_compiz_workaround
Merge into: lp:unity8
Diff against target: 54 lines (+12/-2)
3 files modified
tests/plugins/DashViews/organicgridtest.cpp (+2/-1)
tests/plugins/DashViews/verticaljournaltest.cpp (+2/-1)
tests/plugins/Ubuntu/Gestures/tst_DirectionalDragArea.cpp (+8/-0)
To merge this branch: bzr merge lp:~aacid/unity8/vjog_compiz_workaround
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Michael Zanetti (community) Approve
Review via email: mp+209877@code.launchpad.net

Commit message

Workaround compiz/unity7 behaviour change/bug

Description of the change

* Are there any related MPs required for this MP to build/function as expected?
No

* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes, tests work again in compiz/unity7

* 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
Michael Zanetti (mzanetti) wrote :

Looks good, passes on other display servers than compiz (namely KWin) too.

 * Did you perform an exploratory manual test run of the code change and any related functionality?

yes. ran tests as make test and make try to verify.

 * Did CI run pass? If not, please explain why.

Waiting...

review: Approve
759. By Albert Astals Cid

a comment on the new code

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

tests still passing. Comment and workaround in DDA looking good too.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:759
http://jenkins.qa.ubuntu.com/job/unity8-ci/2457/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/3753
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/3341/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/1327
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-amd64-ci/978
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/982
        deb: http://jenkins.qa.ubuntu.com/job/unity8-trusty-armhf-ci/982/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-trusty-i386-ci/978
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/3300
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3760
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/3760/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3343
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/3343/artifact/work/output/*zip*/output.zip
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/5713/console
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/4582

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/2457/rebuild

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/plugins/DashViews/organicgridtest.cpp'
2--- tests/plugins/DashViews/organicgridtest.cpp 2014-01-14 12:25:52 +0000
3+++ tests/plugins/DashViews/organicgridtest.cpp 2014-03-07 10:49:48 +0000
4@@ -134,11 +134,12 @@
5 view->setSource(QUrl::fromLocalFile(DASHVIEWSTEST_FOLDER "/organicgridtest.qml"));
6
7 view->show();
8+ QTest::qWaitForWindowExposed(view);
9 view->resize(470, 400);
10- QTest::qWaitForWindowExposed(view);
11
12 grid = dynamic_cast<OrganicGrid*>(view->rootObject()->findChild<QObject*>("grid"));
13 grid->setModel(model);
14+ QTRY_COMPARE(grid->width(), 470.);
15
16 checkInitialPositions();
17 }
18
19=== modified file 'tests/plugins/DashViews/verticaljournaltest.cpp'
20--- tests/plugins/DashViews/verticaljournaltest.cpp 2014-01-17 10:08:23 +0000
21+++ tests/plugins/DashViews/verticaljournaltest.cpp 2014-03-07 10:49:48 +0000
22@@ -135,11 +135,12 @@
23 view->setSource(QUrl::fromLocalFile(DASHVIEWSTEST_FOLDER "/verticaljournaltest.qml"));
24
25 view->show();
26- view->resize(470, 400);
27 QTest::qWaitForWindowExposed(view);
28+ view->resize(470, 400);
29
30 vj = dynamic_cast<VerticalJournal*>(view->rootObject()->findChild<QObject*>("vj"));
31 vj->setModel(model);
32+ QTRY_COMPARE(vj->width(), 470.);
33
34 checkInitialPositions();
35 }
36
37=== modified file 'tests/plugins/Ubuntu/Gestures/tst_DirectionalDragArea.cpp'
38--- tests/plugins/Ubuntu/Gestures/tst_DirectionalDragArea.cpp 2014-02-24 16:05:07 +0000
39+++ tests/plugins/Ubuntu/Gestures/tst_DirectionalDragArea.cpp 2014-03-07 10:49:48 +0000
40@@ -103,6 +103,14 @@
41 {
42 GestureTest::init();
43
44+ // We shouldn't need the three lines below, but a compiz/unity7
45+ // regression means we don't pass the test without them because
46+ // the window doesn't have the proper size. Can be removed in the
47+ // future if the regression is fixed and tests pass again
48+ m_view->resize(m_view->rootObject()->width(), m_view->rootObject()->height());
49+ QTRY_COMPARE(m_view->width(), (int)m_view->rootObject()->width());
50+ QTRY_COMPARE(m_view->height(), (int)m_view->rootObject()->height());
51+
52 fakeTimeSource.reset(new FakeTimeSource);
53 fakeTimer = new FakeTimer(fakeTimeSource);
54 }

Subscribers

People subscribed via source and target branches