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

Proposed by Albert Astals Cid
Status: Merged
Approved by: Gerry Boland
Approved revision: 898
Merged at revision: 899
Proposed branch: lp:~aacid/unity-2d/unity-2d_test_alt_f2_esc_alt_f2
Merge into: lp:unity-2d
Diff against target: 42 lines (+34/-0)
1 file modified
tests/places/places-tests.rb (+34/-0)
To merge this branch: bzr merge lp:~aacid/unity-2d/unity-2d_test_alt_f2_esc_alt_f2
Reviewer Review Type Date Requested Status
Gerry Boland Pending
Review via email: mp+91660@code.launchpad.net

Description of the change

[test] Check that Alt+F2, Esc, Alt+F2 shows the dash

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/places/places-tests.rb'
2--- tests/places/places-tests.rb 2012-02-06 09:15:35 +0000
3+++ tests/places/places-tests.rb 2012-02-06 14:42:35 +0000
4@@ -321,4 +321,38 @@
5 @app_places.DashDeclarativeView().SearchEntry().QDeclarativeTextInput()['text']
6 }
7 end
8+
9+ # Test case objectives:
10+ # * Check that Alt+F2, Esc, Alt+F2 shows dash
11+ # Pre-conditions
12+ # * Desktop with no running applications
13+ # Test steps
14+ # * Verify dash is not showing
15+ # * Press Alt+F2
16+ # * Verify dash is showing
17+ # * Press Esc
18+ # * Verify dash is not showing
19+ # * Press Alt+F2
20+ # * Verify dash is showing
21+ # Post-conditions
22+ # * None
23+ # References
24+ # * None
25+ test "Alt+F2, Esc, Alt+F2 shows dash" do
26+ verify_not(2, 'There should not be a Dash declarative view on startup') {
27+ @app_places.DashDeclarativeView()
28+ }
29+ XDo::Keyboard.alt_F2 #Must use uppercase F to indicate function keys
30+ verify(TIMEOUT, 'There should be a Dash declarative view after pressing Alt+F2') {
31+ @app_places.DashDeclarativeView()
32+ }
33+ XDo::Keyboard.escape
34+ verify_not(2, 'There should not be a Dash declarative view after pressing Escape') {
35+ @app_places.DashDeclarativeView()
36+ }
37+ XDo::Keyboard.alt_F2 #Must use uppercase F to indicate function keys
38+ verify(TIMEOUT, 'There should be a Dash declarative view after pressing Alt+F2') {
39+ @app_places.DashDeclarativeView()
40+ }
41+ end
42 end

Subscribers

People subscribed via source and target branches