Merge lp:~cimi/unity8/fix-open-new-scope-from-tmp into lp:unity8
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~cimi/unity8/fix-open-new-scope-from-tmp |
| Merge into: | lp:unity8 |
| Diff against target: |
470 lines (+171/-17) 16 files modified
qml/Dash/Dash.qml (+6/-4) qml/Dash/DashContent.qml (+1/-2) qml/Dash/Previews/Preview.qml (+2/-0) qml/Dash/Previews/PreviewActions.qml (+1/-0) tests/mocks/Unity/fake_previewmodel.cpp (+13/-1) tests/mocks/Unity/fake_previewmodel.h (+7/-1) tests/mocks/Unity/fake_previewstack.cpp (+3/-2) tests/mocks/Unity/fake_previewstack.h (+4/-1) tests/mocks/Unity/fake_previewwidgetmodel.cpp (+11/-0) tests/mocks/Unity/fake_scope.cpp (+5/-5) tests/mocks/Unity/fake_scopes.cpp (+14/-0) tests/mocks/Unity/fake_scopes.h (+6/-0) tests/mocks/Unity/fake_scopesoverview.cpp (+1/-0) tests/qmltests/Dash/Previews/tst_Preview.qml (+31/-0) tests/qmltests/Dash/tst_Dash.qml (+65/-0) tests/qmltests/Dash/tst_GenericScopeView.qml (+1/-1) |
| To merge this branch: | bzr merge lp:~cimi/unity8/fix-open-new-scope-from-tmp |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michał Sawicz | Needs Fixing on 2015-02-11 | ||
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-02-04 | |
| Albert Astals Cid (community) | 2015-02-04 | Needs Information on 2015-02-04 | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2015-02-12.
Commit Message
Fix temp scopes opening temp scopes
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
https:/
* 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?
n/a
* If you changed the UI, has there been a design review?
n/a
- 1552. By Andrea Cimitan on 2015-02-04
-
whitespace
| Andrea Cimitan (cimi) wrote : | # |
> I don't understand the MR, you're adding to fake_scopes three methods that you
> don't use
future proof, if we wanted to test those, since they added API for this branch
and you're removing the code in closeScopes that checks that the
> scope you closed is indeed a scope that was opened.
>
that code is broken... m_openScope is never updated
> Also what's the point of having the scopeThatOpened
> can simply use scopes.closeScope?
I can switch to that too... but didn't want to move far from the previous implementation
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1552
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://
| Albert Astals Cid (aacid) wrote : | # |
> > I don't understand the MR, you're adding to fake_scopes three methods that
> you
> > don't use
>
> future proof, if we wanted to test those, since they added API for this branch
Hmmm, no, the only added api for the branch is
Q_INVOKABLE void closeScope(
the others are private methods you'll never see
>
> and you're removing the code in closeScopes that checks that the
> > scope you closed is indeed a scope that was opened.
> >
> that code is broken... m_openScope is never updated
Broken where? after your changes? may be, then what about fixing it?
> > Also what's the point of having the scopeThatOpened
> you
> > can simply use scopes.closeScope?
>
> I can switch to that too... but didn't want to move far from the previous
> implementation
Well, you made Pawel to add this new method and now you're not using it?
Also, why are you using
dashTempScope
?
Can you please make it work with a click that calls activate in the scope and thus ends up in Scope::activate that emits openScope?
That way we're properly exercising all the parts of the code
| Michał Sawicz (saviq) wrote : | # |
You need to depend on the new unity-api version, bump the API requirement in tests/mocks/
- 1553. By Andrea Cimitan on 2015-02-11
-
Merged albert branch, more implementations on the mock
- 1554. By Andrea Cimitan on 2015-02-11
-
Moar fixes
- 1555. By Andrea Cimitan on 2015-02-12
-
More fixes
- 1556. By Andrea Cimitan on 2015-02-12
-
bump versions
- 1557. By Andrea Cimitan on 2015-02-12
-
remove console log
- 1558. By Andrea Cimitan on 2015-02-12
-
as review
- 1559. By Andrea Cimitan on 2015-02-12
-
As suggested
- 1560. By Andrea Cimitan on 2015-02-12
-
Small tweak
- 1561. By Andrea Cimitan on 2015-02-13
-
Bump version
- 1562. By Andrea Cimitan on 2015-02-13
-
merge el trunko
- 1563. By Andrea Cimitan on 2015-02-16
-
Fix testPreview

I don't understand the MR, you're adding to fake_scopes three methods that you don't use and you're removing the code in closeScopes that checks that the scope you closed is indeed a scope that was opened.
Also what's the point of having the scopeThatOpened Scope variable now that you can simply use scopes.closeScope?