Merge lp:~aacid/unity-2d/unity-2d_test_alt_f1_esc into lp:unity-2d

Proposed by Albert Astals Cid
Status: Merged
Approved by: Gerry Boland
Approved revision: 865
Merged at revision: 865
Proposed branch: lp:~aacid/unity-2d/unity-2d_test_alt_f1_esc
Merge into: lp:unity-2d
Diff against target: 41 lines (+33/-0)
1 file modified
tests/launcher/autohide_show_tests.rb (+33/-0)
To merge this branch: bzr merge lp:~aacid/unity-2d/unity-2d_test_alt_f1_esc
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
Review via email: mp+89946@code.launchpad.net

Description of the change

[test] Check Launcher does not hide on Esc after Alt+F1 with overlapping window

To post a comment you must log in.
865. By Albert Astals Cid

improve name

Revision history for this message
Gerry Boland (gerboland) wrote :

Very nice, thank you!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/launcher/autohide_show_tests.rb'
2--- tests/launcher/autohide_show_tests.rb 2012-01-23 16:39:50 +0000
3+++ tests/launcher/autohide_show_tests.rb 2012-01-24 17:20:29 +0000
4@@ -470,4 +470,37 @@
5 xid.close!
6 end
7
8+ # Test case objectives:
9+ # * Launcher does not hide on Esc after Alt+F1 with overlapping window
10+ # Pre-conditions
11+ # * Desktop with no running applications
12+ # Test steps
13+ # * Open application in position overlapping Launcher
14+ # * Verify Launcher hiding
15+ # * Press Alt+F1
16+ # * Verify Launcher showing
17+ # * Move mouse over the launcher
18+ # * Press Esc
19+ # * Verify Launcher does not hide
20+ # Post-conditions
21+ # * None
22+ # References
23+ # * None
24+ test "Launcher does not hide on Esc after Alt+F1 with overlapping window" do
25+ xid = TmpWindow.open_window_at(10,100)
26+ verify_equal( -WIDTH, TIMEOUT, 'Launcher visible with window in the way, should be hidden' ) {
27+ @app.Unity2dPanel()['x_absolute'].to_i
28+ }
29+ XDo::Keyboard.alt_F1 #Must use uppercase F to indicate function keys
30+ bfb = @app.LauncherList( :name => 'main' ).LauncherList( :isBfb => true );
31+ bfb.move_mouse()
32+ XDo::Keyboard.escape
33+ verify_not(0, 'Launcher hiding after hovering mouse over bfb and clicking twice') {
34+ verify_equal( -WIDTH, 2 ) {
35+ @app.Unity2dPanel()['x_absolute'].to_i
36+ }
37+ }
38+ xid.close!
39+ end
40+
41 end

Subscribers

People subscribed via source and target branches