Merge lp:~aacid/unity-2d/unity-2d-shell_fix_dash_launcher_interactions into lp:~unity-2d-team/unity-2d/unity-2d-shell
| Status: | Merged |
|---|---|
| Approved by: | Michał Sawicz on 2012-01-26 |
| Approved revision: | 932 |
| Merged at revision: | 933 |
| Proposed branch: | lp:~aacid/unity-2d/unity-2d-shell_fix_dash_launcher_interactions |
| Merge into: | lp:~unity-2d-team/unity-2d/unity-2d-shell |
| Diff against target: |
24 lines (+7/-1) 1 file modified
shell/app/shelldeclarativeview.cpp (+7/-1) |
| To merge this branch: | bzr merge lp:~aacid/unity-2d/unity-2d-shell_fix_dash_launcher_interactions |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michał Sawicz | 2012-01-25 | Needs Information on 2012-01-26 | |
| Lohith D Shivamurthy (community) | Approve on 2012-01-26 | ||
|
Review via email:
|
|||
Description of the Change
Fix dash and launcher interaction with Super, Alt+f1 and Super, Super, Alt+F1
| Lohith D Shivamurthy (dyams) wrote : | # |
> Yes, the issues are addressed properly. Don't we need tests?
> One information needed: In Unity-3D, Hitting Alt-F1 While Dash is active,
> Launcher will gain the focus and dash is not closed. But here the dash is
> closed. Which one is correct?
Hey I found the tests here
https:/
| Albert Astals Cid (aacid) wrote : | # |
Oh, I forgot to add the comment with the tests, sorry about that it was late in my day yesterday.
About "Hitting Alt-F1 While Dash is active" behaviour i don't know, i did mimic what unity-2d did in unity-2d-shell, i guess we need to ask someone from design
| Albert Astals Cid (aacid) wrote : | # |
@Lohith: Seems unity-2d behaviour is the correct one https:/
| Michał Sawicz (saviq) wrote : | # |
I'm getting a failed test when running the whole suite:
michal@
Running tests on applications contained within /home/michal/
Loaded suite ./places-tests
Started
...F
Finished in 24.930652 seconds.
1) Failure:
test_Super_
[/usr/
./
/media/
/media/
/media/
Verification "Launcher should be hiding after toggling the dash" at ./places-
=> verify_equal( -WIDTH, TIMEOUT, 'Launcher should be hiding after toggling the dash' ) {
}
The value was not equal to -65. It returned: 0
4 tests, 0 assertions, 1 failures, 0 errors
If I just run the single test, it passes:
michal@
Running tests on applications contained within /home/michal/
Loaded suite ./places-tests
Started
.
Finished in 5.85724 seconds.
1 tests, 0 assertions, 0 failures, 0 errors
Manual testing shows everything works fine, so unless you find something wrong with the test / implementation, we can go ahead.
Below is the diff containing the adapted tests.
=== zmodyfikowano plik tests/places/
--- tests/places/
+++ tests/places/
@@ -30,6 +30,7 @@
######
context "Dash Tests" do
+ WIDTH = 65
# Run once at the beginning of this test suite
startup do
$SUT.
@@ -75,7 +76,7 @@
# References
# * None
test "Alt+F2 shows the Dash" do
- verify_
+ verify_
}
XDo:
@@ -97,7 +98,7 @@
# References
# * None
test "Pressing the bfb shows the Dash" do
- verify_
+ verify_
}
bfb = @app.LauncherList( :name => 'main' ).LauncherList( :isBfb => true );
@@ -111,4 +112,92 @@
}
end
+
+ # Test case objectives:
+ # * Check Super and Alt+F1 interaction
+ # Pre-conditions
+ # * Desktop with no running applications
+ # Test steps
+ # * Verify dash is not showing
+ # * Pr...


Yes, the issues are addressed properly. Don't we need tests?
One information needed: In Unity-3D, Hitting Alt-F1 While Dash is active, Launcher will gain the focus and dash is not closed. But here the dash is closed. Which one is correct?