Merge lp:~aacid/unity-2d/unity-2d-shell_choose_root_file into lp:~unity-2d-team/unity-2d/unity-2d-shell
| Status: | Merged |
|---|---|
| Approved by: | Michał Sawicz on 2012-01-24 |
| Approved revision: | 926 |
| Merged at revision: | 926 |
| Proposed branch: | lp:~aacid/unity-2d/unity-2d-shell_choose_root_file |
| Merge into: | lp:~unity-2d-team/unity-2d/unity-2d-shell |
| Diff against target: |
157 lines (+124/-3) 3 files modified
shell/app/shell.cpp (+15/-3) tests/shell/root_qml_param.rb (+97/-0) tests/shell/rootqmlparamtest.qml (+12/-0) |
| To merge this branch: | bzr merge lp:~aacid/unity-2d/unity-2d-shell_choose_root_file |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michał Sawicz | 2012-01-19 | Approve on 2012-01-24 | |
| Florian Boucault | 2012-01-24 | Pending | |
| Ugo Riboni | 2012-01-23 | Pending | |
|
Review via email:
|
|||
Description of the Change
[shell] Add the -rootfile option that lets the user specify the shell root qml file
- 921. By Albert Astals Cid on 2012-01-23
-
merge
- 922. By Albert Astals Cid on 2012-01-23
-
Add a test to show the file is being loaded correctly
- 923. By Albert Astals Cid on 2012-01-23
-
merge
- 924. By Albert Astals Cid on 2012-01-24
-
rename param to rootqml as per Michał suggestion
| Michał Sawicz (saviq) wrote : | # |
Here's the result of the tests on stock unity-2d-shell:
michal@
Running tests on applications contained within /home/michal/
Loaded suite ./root_file_param
Started
..E
Finished in 35.574464 seconds.
1) Error:
test_Verify_
MobyBase:
=> verify{ @app.QDeclarati
end
Details:
#<MobyBase:
/usr/
./root_
/media/
3 tests, 0 assertions, 0 failures, 1 errors
- 925. By Albert Astals Cid on 2012-01-24
-
verify_not is kind of weird, i need a 0 here so that it passes with the feature and fails without
- 926. By Albert Astals Cid on 2012-01-24
-
As discussed with Michał does not make much sense to test that the shell starts in the rootqml tests, it belongs somewhere else
| Michał Sawicz (saviq) wrote : | # |
Good for me, Florian please tell if that's not what you had in mind for "Add cmd line option to choose which root QML file to load".
| Florian Boucault (fboucault) wrote : | # |
That's great guys. Step 2 will be to make sure we can do:
unity-2d-shell -rootqml shell/launcher/
unity-2d-shell -rootqml shell/dash/Dash.qml
| Michał Sawicz (saviq) wrote : | # |
Approving, then, and we will need to split the shell up into separate components. Florian, what's the priority of that?


Could you maybe rename the argument to "-rootqml", please? it's more self-explanatory then.