redcar-dev 0.12.17dev → 0.12.18dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. data/CHANGES +4 -2
  2. data/README.md +5 -41
  3. data/Rakefile +3 -35
  4. data/lib/redcar.rb +19 -17
  5. data/lib/redcar/runner.rb +1 -7
  6. data/lib/redcar_quick_start.rb +5 -5
  7. data/plugins/application/features/main_menu.feature +1 -1
  8. data/plugins/application/features/step_definitions/command_steps.rb +8 -7
  9. data/plugins/application/features/step_definitions/filter_list_dialog_steps.rb +25 -10
  10. data/plugins/application/features/step_definitions/key_steps.rb +6 -4
  11. data/plugins/application/features/step_definitions/menu_steps.rb +27 -26
  12. data/plugins/application/features/step_definitions/speedbar_steps.rb +28 -16
  13. data/plugins/application/features/step_definitions/tree_steps.rb +88 -64
  14. data/plugins/application/features/step_definitions/window_steps.rb +14 -10
  15. data/plugins/application/features/support/env.rb +85 -83
  16. data/plugins/application/spec/application/application_spec.rb +1 -1
  17. data/plugins/application/spec/application/clipboard_spec.rb +1 -1
  18. data/plugins/application/spec/application/command/executor_spec.rb +1 -1
  19. data/plugins/application/spec/application/command/history_spec.rb +1 -1
  20. data/plugins/application/spec/application/command_spec.rb +1 -1
  21. data/plugins/application/spec/application/keymap/builder_spec.rb +1 -1
  22. data/plugins/application/spec/application/menu/builder_spec.rb +1 -1
  23. data/plugins/application/spec/application/menu/menu_item_spec.rb +1 -1
  24. data/plugins/application/spec/application/menu_spec.rb +1 -1
  25. data/plugins/application/spec/application/navigation_history_spec.rb +2 -0
  26. data/plugins/application/spec/application/notebook_spec.rb +1 -1
  27. data/plugins/application/spec/application/sensitive_spec.rb +1 -1
  28. data/plugins/application/spec/application/speedbar_spec.rb +1 -1
  29. data/plugins/application/spec/application/treebook_spec.rb +1 -1
  30. data/plugins/application/spec/application/window_spec.rb +1 -1
  31. data/plugins/application/spec/spec_helper.rb +4 -6
  32. data/plugins/application_swt/lib/application_swt/dialogs/filter_list_dialog_controller.rb +1 -1
  33. data/plugins/application_swt/lib/application_swt/gradient.rb +15 -5
  34. data/plugins/application_swt/lib/application_swt/window.rb +1 -1
  35. data/plugins/application_swt/spec/application_swt/gradient_spec.rb +13 -14
  36. data/plugins/application_swt/spec/application_swt/menu/binding_translator_spec.rb +1 -1
  37. data/plugins/application_swt/spec/application_swt/menu_spec.rb +1 -1
  38. data/plugins/application_swt/spec/spec_helper.rb +1 -19
  39. data/plugins/auto_completer/features/auto_complete.feature +7 -7
  40. data/plugins/auto_completer/features/step_definitions/auto_complete_steps.rb +3 -1
  41. data/plugins/auto_completer/features/step_definitions/dependency_steps.rb +0 -0
  42. data/plugins/auto_indenter/features/java_style_indentation.feature +5 -3
  43. data/plugins/auto_indenter/features/ruby_style_indentation.feature +13 -13
  44. data/plugins/auto_indenter/features/step_definitions/indentation_steps.rb +3 -1
  45. data/plugins/auto_indenter/spec/auto_indenter/analyzer_spec.rb +1 -1
  46. data/plugins/auto_indenter/spec/spec_helper.rb +1 -5
  47. data/plugins/auto_pairer/features/auto_pairer.feature +1 -1
  48. data/plugins/comment/features/line_comment.feature +31 -26
  49. data/plugins/comment/features/selection_comment.feature +1 -1
  50. data/plugins/comment/features/step_definitions/comment_steps.rb +6 -2
  51. data/plugins/comment/vendor/comment_lib.json +2 -0
  52. data/plugins/core/lib/core.rb +26 -0
  53. data/plugins/core/spec/core/base_storage_spec.rb +1 -1
  54. data/plugins/core/spec/core/gui_spec.rb +1 -1
  55. data/plugins/core/spec/core/observable_spec.rb +2 -1
  56. data/plugins/core/spec/core/persistent_cache_spec.rb +1 -1
  57. data/plugins/core/spec/core/shared_storage_spec.rb +1 -1
  58. data/plugins/core/spec/core/storage_spec.rb +1 -1
  59. data/plugins/core/spec/core/task_queue_spec.rb +1 -3
  60. data/plugins/core/spec/spec_helper.rb +1 -4
  61. data/plugins/declarations/spec/declarations/file_spec.rb +1 -1
  62. data/plugins/declarations/spec/spec_helper.rb +1 -5
  63. data/plugins/document_search/features/find.feature +39 -39
  64. data/plugins/document_search/features/step_definitions/find_steps.rb +6 -2
  65. data/plugins/edit_view/features/align_assignment.feature +6 -82
  66. data/plugins/edit_view/features/case_change.feature +22 -22
  67. data/plugins/edit_view/features/cursor_navigation.feature +2 -2
  68. data/plugins/edit_view/features/cut_and_paste.feature +9 -9
  69. data/plugins/edit_view/features/indentation_commands.feature +8 -8
  70. data/plugins/edit_view/features/line_delimiter.feature +7 -7
  71. data/plugins/edit_view/features/multiple_windows.feature +48 -48
  72. data/plugins/edit_view/features/step_definitions/dependency_steps.rb +0 -0
  73. data/plugins/edit_view/features/step_definitions/editing_steps.rb +237 -127
  74. data/plugins/edit_view/features/step_definitions/grammar_steps.rb +5 -1
  75. data/plugins/edit_view/features/step_definitions/notebook_steps.rb +38 -24
  76. data/plugins/edit_view/features/step_definitions/tab_steps.rb +83 -45
  77. data/plugins/edit_view/features/step_definitions/window_steps.rb +75 -54
  78. data/plugins/edit_view/features/support/env.rb +4 -23
  79. data/plugins/edit_view/lib/edit_view/commands/align_assignment_command.rb +29 -30
  80. data/plugins/edit_view/lib/edit_view/document.rb +23 -0
  81. data/plugins/edit_view/spec/edit_view/commands/align_assignment_command_spec.rb +83 -0
  82. data/plugins/edit_view/spec/edit_view/document/indentation_spec.rb +1 -1
  83. data/plugins/edit_view/spec/edit_view/document_spec.rb +1 -1
  84. data/plugins/edit_view/spec/spec_helper.rb +1 -4
  85. data/plugins/edit_view_swt/spec/edit_view_swt/word_movement_spec.rb +1 -1
  86. data/plugins/edit_view_swt/spec/spec_helper.rb +1 -4
  87. data/plugins/html_view/features/fixtures/sample.html +1 -1
  88. data/plugins/html_view/features/step_definitions/html_view_steps.rb +40 -39
  89. data/plugins/java/features/syntax_check_java.feature +18 -16
  90. data/plugins/line_tools/features/step_definitions/line_tools_steps.rb +18 -6
  91. data/plugins/macros/features/block_selection_in_macros.feature +47 -47
  92. data/plugins/macros/features/step_definitions/macro_steps.rb +9 -3
  93. data/plugins/macros/features/step_definitions/prediction_steps.rb +6 -2
  94. data/plugins/macros/plugin.rb +2 -1
  95. data/plugins/macros/spec/macros/predictive/sequence_finder_spec.rb +1 -1
  96. data/plugins/macros/spec/spec_helper.rb +1 -6
  97. data/plugins/outline_view/features/outline_view.feature +5 -5
  98. data/plugins/outline_view/features/step_definitions/outline_steps.rb +29 -17
  99. data/plugins/plugin_manager_ui/lib/plugin_manager_ui.rb +1 -1
  100. data/plugins/project/features/close_directory_tree.feature +0 -12
  101. data/plugins/project/features/open_directory_tree.feature +1 -2
  102. data/plugins/project/features/step_definitions/directory_steps.rb +13 -5
  103. data/plugins/project/features/step_definitions/file_steps.rb +23 -9
  104. data/plugins/project/features/step_definitions/find_file_steps.rb +6 -2
  105. data/plugins/project/features/step_definitions/project_tree_steps.rb +6 -2
  106. data/plugins/project/features/watch_for_modified_files.feature +1 -1
  107. data/plugins/project/spec/project/adapters/remote_protocols/ftp_spec.rb +1 -1
  108. data/plugins/project/spec/project/adapters/remote_protocols/sftp_spec.rb +1 -1
  109. data/plugins/project/spec/project/adapters/remote_spec.rb +1 -1
  110. data/plugins/project/spec/project/dir_mirror_spec.rb +1 -1
  111. data/plugins/project/spec/project/file_list_spec.rb +1 -1
  112. data/plugins/project/spec/project/file_mirror_spec.rb +2 -1
  113. data/plugins/project/spec/spec_helper.rb +1 -4
  114. data/plugins/project_search/spec/project_search/binary_data_detector_spec.rb +1 -1
  115. data/plugins/project_search/spec/project_search/word_search_spec.rb +1 -1
  116. data/plugins/project_search/spec/spec_helper.rb +1 -4
  117. data/plugins/{application → redcar}/features/navigation_history.feature +8 -8
  118. data/plugins/redcar/features/step_definitions/font_steps.rb +9 -5
  119. data/plugins/redcar/redcar.rb +0 -26
  120. data/plugins/repl/features/step_definitions/repl_steps.rb +15 -5
  121. data/plugins/repl/plugin.rb +1 -1
  122. data/plugins/repl/spec/repl/repl_mirror_spec.rb +1 -1
  123. data/plugins/repl/spec/spec_helper.rb +1 -4
  124. data/plugins/ruby/spec/ruby/repl_mirror_spec.rb +1 -1
  125. data/plugins/ruby/spec/spec_helper.rb +1 -5
  126. data/plugins/runnables/features/parameter_input.feature +43 -43
  127. data/plugins/runnables/features/step_definitions/runnable_steps.rb +9 -3
  128. data/plugins/runnables/plugin.rb +2 -2
  129. data/plugins/runnables/spec/runnables/output_processor_spec.rb +1 -1
  130. data/plugins/runnables/spec/spec_helper.rb +1 -5
  131. data/plugins/scm_svn/features/add_and_commit.feature +1 -0
  132. data/plugins/scm_svn/features/checkout.feature +1 -0
  133. data/plugins/scm_svn/features/edit_and_index.feature +1 -0
  134. data/plugins/scm_svn/features/ignore_files.feature +1 -0
  135. data/plugins/scm_svn/features/merge.feature +1 -0
  136. data/plugins/scm_svn/features/resolve_conflict.feature +1 -0
  137. data/plugins/scm_svn/features/revert_and_delete.feature +1 -0
  138. data/plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb +14 -9
  139. data/plugins/scm_svn/features/support/env.rb +4 -4
  140. data/plugins/scm_svn/features/switch_branches.feature +1 -0
  141. data/plugins/scm_svn/features/update.feature +1 -0
  142. data/plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature +4 -4
  143. data/plugins/test_runner/plugin.rb +3 -1
  144. data/plugins/test_runner/spec/run_test_command_spec.rb +58 -50
  145. data/plugins/test_runner/spec/spec_helper.rb +1 -5
  146. data/plugins/textmate/features/step_definitions/tree_steps.rb +2 -0
  147. data/plugins/todo_list/features/todo_list.feature +1 -1
  148. data/plugins/todo_list/spec/spec_helper.rb +1 -4
  149. data/plugins/todo_list/spec/todo_list/file_parser_spec.rb +1 -1
  150. data/plugins/tree_view_swt/lib/tree_view_swt.rb +2 -1
  151. data/plugins/web_bookmarks/features/step_definitions/web_steps.rb +1 -1
  152. metadata +48 -48
  153. data/lib/redcar/installer.rb +0 -178
  154. data/plugins/key_bindings/spec/spec_helper.rb +0 -5
  155. data/plugins/scm/spec/spec_helper.rb +0 -5
@@ -1,10 +1,14 @@
1
1
 
2
2
  When /^I open the incremental search speedbar$/ do
3
- Redcar::DocumentSearch::OpenIncrementalSearchSpeedbarCommand.new.run
3
+ Swt.sync_exec do
4
+ Redcar::DocumentSearch::OpenIncrementalSearchSpeedbarCommand.new.run
5
+ end
4
6
  end
5
7
 
6
8
  When /^I open the find speedbar$/ do
7
- Redcar::DocumentSearch::OpenFindSpeedbarCommand.new.run
9
+ Swt.sync_exec do
10
+ Redcar::DocumentSearch::OpenFindSpeedbarCommand.new.run
11
+ end
8
12
  end
9
13
 
10
14
  Then /^I should see the incremental search speedbar$/ do
@@ -4,65 +4,22 @@ Feature: Align Assignment
4
4
  When I open a new edit tab
5
5
 
6
6
  Scenario: align simple assignments
7
- When I replace the contents with "a = 4\nbc = 5\nd = 123"
7
+ When I type "a = 4\nbc = 5\nd = 123"
8
8
  And I select all
9
- And I run the command Redcar::EditView::AlignAssignmentCommand
9
+ And I select menu item "Edit|Formatting|Align Assignments"
10
10
  Then the contents should be "<c>a = 4\nbc = 5\nd = 123<s>"
11
11
 
12
- Scenario: align rows that have empty lines
13
- When I replace the contents with "a = 1\n\nab = 123"
14
- And I select all
15
- And I run the command Redcar::EditView::AlignAssignmentCommand
16
- Then the contents should be "<c>a = 1\n\nab = 123<s>"
17
-
18
- Scenario: preserve trailing newline
12
+ Scenario: Operates on entire lines, not portions of lines
19
13
  Given the content is:
20
14
  """
21
15
  def foo
22
- <c> a = 1
16
+ a = 1
23
17
  bb = 2
24
18
  ccc = 3
25
- <s>end
26
- """
27
- When I run the command Redcar::EditView::AlignAssignmentCommand
28
- Then the content should be:
29
- """
30
- def foo
31
- <c> a = 1
32
- bb = 2
33
- ccc = 3<s>
34
- end
35
- """
36
-
37
- Scenario: preserve non-selected indentation
38
- Given the content is:
39
- """
40
- def foo
41
- <c>a = 1
42
- bb = 2
43
- ccc = 3<s>
44
- end
45
- """
46
- When I run the command Redcar::EditView::AlignAssignmentCommand
47
- Then the content should be:
48
- """
49
- def foo
50
- <c> a = 1
51
- bb = 2
52
- ccc = 3<s>
53
- end
54
- """
55
-
56
- Scenario: align the right hand side of the operator
57
- Given the content is:
58
- """
59
- def foo
60
- <c> a = 1
61
- bb = 2
62
- ccc = 3<s>
63
19
  end
64
20
  """
65
- When I run the command Redcar::EditView::AlignAssignmentCommand
21
+ And I select from (1,2) to (3,9)
22
+ And I select menu item "Edit|Formatting|Align Assignments"
66
23
  Then the content should be:
67
24
  """
68
25
  def foo
@@ -71,36 +28,3 @@ Feature: Align Assignment
71
28
  ccc = 3<s>
72
29
  end
73
30
  """
74
- Scenario: aligning different length operators
75
- Given the content is:
76
- """
77
- Integer === 1
78
- two =~ /2/
79
- @three||= 3333
80
- bits &= 0b101010
81
- """
82
- And I select all
83
- When I run the command Redcar::EditView::AlignAssignmentCommand
84
- Then the content should be:
85
- """
86
- <c>Integer === 1
87
- two =~ /2/
88
- @three ||= 3333
89
- bits & = 0b101010<s>
90
- """
91
-
92
- Scenario: aligning hashes
93
- Given the content is:
94
- """
95
- {:one => 1,
96
- :two => 22,
97
- :threee => 333}
98
- """
99
- And I select all
100
- When I run the command Redcar::EditView::AlignAssignmentCommand
101
- Then the content should be:
102
- """
103
- <c>{:one => 1,
104
- :two => 22,
105
- :threee => 333}<s>
106
- """
@@ -5,63 +5,63 @@ Feature: Change Case
5
5
 
6
6
  Scenario: Upcase selected text
7
7
  When I replace the contents with "Curry Chicken"
8
- And I select from 5 to 0
9
- And I run the command Redcar::EditView::UpcaseTextCommand
8
+ And I select -5 from (0,5)
9
+ And I select menu item "Edit|Formatting|Convert Text|to Uppercase"
10
10
  Then the contents should be "<c>CURRY<s> Chicken"
11
11
 
12
12
  Scenario: Upcase selected text and preserve cursor position
13
13
  When I replace the contents with "Curry Chicken"
14
- And I select from 0 to 5
15
- And I run the command Redcar::EditView::UpcaseTextCommand
14
+ And I select 5 from (0,0)
15
+ And I select menu item "Edit|Formatting|Convert Text|to Uppercase"
16
16
  Then the contents should be "<s>CURRY<c> Chicken"
17
17
 
18
18
  Scenario: Upcase word if no selection
19
19
  When I replace the contents with "Curry Chicken"
20
- And I move the cursor to 10
21
- And I run the command Redcar::EditView::UpcaseTextCommand
20
+ And I move the cursor to (0,10)
21
+ And I select menu item "Edit|Formatting|Convert Text|to Uppercase"
22
22
  Then the contents should be "Curry CHIC<c>KEN"
23
23
 
24
24
  Scenario: Downcase text
25
25
  When I replace the contents with "CURRY CHICKEN"
26
- And I select from 0 to 5
27
- And I run the command Redcar::EditView::DowncaseTextCommand
26
+ And I select 5 from (0,0)
27
+ And I select menu item "Edit|Formatting|Convert Text|to Lowercase"
28
28
  Then the contents should be "<s>curry<c> CHICKEN"
29
29
 
30
30
  Scenario: Titlize text
31
31
  When I replace the contents with "curry chicken"
32
- And I select from 0 to 13
33
- And I run the command Redcar::EditView::TitlizeTextCommand
32
+ And I select 13 from (0,0)
33
+ And I select menu item "Edit|Formatting|Convert Text|to Titlecase"
34
34
  Then the contents should be "<s>Curry Chicken<c>"
35
35
  When I replace the contents with "CURRY CHICKEN"
36
- And I select from 0 to 13
37
- And I run the command Redcar::EditView::TitlizeTextCommand
36
+ And I select 13 from (0,0)
37
+ And I select menu item "Edit|Formatting|Convert Text|to Titlecase"
38
38
  Then the contents should be "<s>Curry Chicken<c>"
39
39
 
40
40
  Scenario: Opposite case
41
41
  When I replace the contents with "Curry Chicken"
42
- And I select from 0 to 13
43
- And I run the command Redcar::EditView::OppositeCaseTextCommand
42
+ And I select 13 from (0,0)
43
+ And I select menu item "Edit|Formatting|Convert Text|to Opposite Case"
44
44
  Then the contents should be "<s>cURRY cHICKEN<c>"
45
45
 
46
46
  Scenario: Camel case
47
47
  When I replace the contents with "curry_chicken"
48
- And I move the cursor to 13
49
- And I run the command Redcar::EditView::CamelCaseTextCommand
48
+ And I move the cursor to (0,13)
49
+ And I select menu item "Edit|Formatting|Convert Text|to CamelCase"
50
50
  Then the contents should be "CurryChicken<c>"
51
51
 
52
52
  Scenario: Underscore
53
53
  When I replace the contents with "CurryChicken"
54
- And I move the cursor to 12
55
- And I run the command Redcar::EditView::UnderscoreTextCommand
54
+ And I move the cursor to (0,12)
55
+ And I select menu item "Edit|Formatting|Convert Text|to snake_case"
56
56
  Then the contents should be "curry_chicke<c>n"
57
57
 
58
58
  Scenario: Pascal to Underscore to Camel Case rotation
59
59
  When I replace the contents with "CurryChicken"
60
- And I move the cursor to 12
61
- And I run the command Redcar::EditView::CamelSnakePascalRotateTextCommand
60
+ And I move the cursor to (0,12)
61
+ And I select menu item "Edit|Formatting|Convert Text|Toggle PascalCase-underscore-camelCase"
62
62
  Then the contents should be "curry_chicke<c>n"
63
- When I run the command Redcar::EditView::CamelSnakePascalRotateTextCommand
63
+ And I select menu item "Edit|Formatting|Convert Text|Toggle PascalCase-underscore-camelCase"
64
64
  Then the contents should be "curryChicken<c>"
65
- When I run the command Redcar::EditView::CamelSnakePascalRotateTextCommand
65
+ And I select menu item "Edit|Formatting|Convert Text|Toggle PascalCase-underscore-camelCase"
66
66
  Then the contents should be "CurryChicken<c>"
67
67
 
@@ -5,7 +5,7 @@ Feature: Cursor navigation
5
5
 
6
6
  Scenario: Move forward word works with multi-byte chars
7
7
  When I replace the contents with "<h1>'Oáy z' wee"
8
- And I move the cursor to 0
8
+ And I move the cursor to (0,0)
9
9
  When I move to the next word
10
10
  Then the contents should be "<h1<c>>'Oáy z' wee"
11
11
  When I move to the next word
@@ -21,7 +21,7 @@ Feature: Cursor navigation
21
21
 
22
22
  Scenario: Move backward word works with multi-byte chars
23
23
  When I replace the contents with "<h1>'Oáy z' wee"
24
- And I move the cursor to 15
24
+ And I move the cursor to (0,15)
25
25
  When I move to the previous word
26
26
  Then the contents should be "<h1>'Oáy z' <c>wee"
27
27
  When I move to the previous word
@@ -5,41 +5,41 @@ Feature: Cut and Paste
5
5
 
6
6
  Scenario: Cut removes the text
7
7
  When I replace the contents with "Frank"
8
- And I select from 0 to 3
8
+ And I select 3 from (0,0)
9
9
  And I cut text
10
10
  Then I should not see "Fra" in the edit tab
11
11
  And I should see "nk" in the edit tab
12
12
 
13
13
  Scenario: Copy leaves the text
14
14
  When I replace the contents with "Frank"
15
- And I select from 0 to 3
15
+ And I select 3 from (0,0)
16
16
  And I copy text
17
17
  Then I should see "Frank" in the edit tab
18
18
 
19
19
  Scenario: Paste inserts the cut text
20
20
  When I replace the contents with "Frank"
21
- And I select from 0 to 3
21
+ And I select 3 from (0,0)
22
22
  And I cut text
23
- And I move the cursor to 2
23
+ And I move the cursor to (0,2)
24
24
  And I paste text
25
25
  Then the contents should be "nkFra<c>"
26
26
 
27
27
  Scenario: Paste inserts the copied text
28
28
  When I replace the contents with "Frank"
29
- And I select from 0 to 3
29
+ And I select 3 from (0,0)
30
30
  And I copy text
31
- And I move the cursor to 2
31
+ And I move the cursor to (0,2)
32
32
  And I paste text
33
33
  Then I should see "FrFraank" in the edit tab
34
34
  Then the contents should be "FrFra<c>ank"
35
35
 
36
36
  Scenario: Paste pastes the most recent copy
37
37
  When I replace the contents with "Frank"
38
- And I select from 0 to 3
38
+ And I select 3 from (0,0)
39
39
  And I copy text
40
- And I select from 3 to 5
40
+ And I select 2 from (0,3)
41
41
  And I copy text
42
- And I move the cursor to 0
42
+ And I move the cursor to (0,0)
43
43
  And I paste text
44
44
  Then the contents should be "nk<c>Frank"
45
45
 
@@ -3,40 +3,40 @@ Feature: Indentation commands
3
3
  Scenario: Increase indent, soft tabs, width 2
4
4
  When I open a new edit tab
5
5
  And tabs are soft, 2 spaces
6
- And I run the command Redcar::Top::IncreaseIndentCommand
6
+ And I select menu item "Edit|Formatting|Increase Indent"
7
7
  Then the contents should be " "
8
8
 
9
9
  Scenario: Decrease indent, soft tabs, width 2
10
10
  When I open a new edit tab
11
11
  And tabs are soft, 2 spaces
12
12
  And I replace the contents with "<c> "
13
- And I run the command Redcar::Top::DecreaseIndentCommand
13
+ And I select menu item "Edit|Formatting|Decrease Indent"
14
14
  Then the contents should be " "
15
15
 
16
16
  Scenario: Increase indent, soft tabs, width 3
17
17
  When I open a new edit tab
18
18
  And tabs are soft, 3 spaces
19
- And I run the command Redcar::Top::IncreaseIndentCommand
19
+ And I select menu item "Edit|Formatting|Increase Indent"
20
20
  Then the contents should be " "
21
21
 
22
22
  Scenario: Decrease indent, soft tabs, width 3
23
23
  When I open a new edit tab
24
24
  And tabs are soft, 3 spaces
25
25
  And I replace the contents with "<c> "
26
- And I run the command Redcar::Top::DecreaseIndentCommand
26
+ And I select menu item "Edit|Formatting|Decrease Indent"
27
27
  Then the contents should be " "
28
28
 
29
29
  Scenario: Increase indent, hard tabs, width 2
30
30
  When I open a new edit tab
31
31
  And tabs are hard
32
- And I run the command Redcar::Top::IncreaseIndentCommand
32
+ And I select menu item "Edit|Formatting|Increase Indent"
33
33
  Then the contents should be "\t"
34
34
 
35
35
  Scenario: Decrease indent, hard tabs, width 2
36
36
  When I open a new edit tab
37
37
  And tabs are hard
38
38
  And I replace the contents with "<c>\t\t"
39
- And I run the command Redcar::Top::DecreaseIndentCommand
39
+ And I select menu item "Edit|Formatting|Decrease Indent"
40
40
  Then the contents should be "\t"
41
41
 
42
42
  Scenario: auto-indent, soft tabs, width 2
@@ -44,6 +44,6 @@ Feature: Indentation commands
44
44
  When I open a new edit tab
45
45
  And tabs are soft, 2 spaces
46
46
  And I replace the contents with "def f\n\t1\t\t\nend\t"
47
- And I select from 0 to 13
48
- And I run the command Redcar::AutoIndenter::IndentCommand
47
+ And I select 13 from (0,0)
48
+ And I select menu item "Edit|Formatting|Indent"
49
49
  Then the contents should be "def f\n 1\nend"
@@ -8,14 +8,14 @@ Feature: Line delimiter
8
8
  Scenario: Delete at end of line deletes delimiter (Windows)
9
9
  When I open a new edit tab
10
10
  And I replace the contents with "foo\r\nbar\r\nbaz\r\n"
11
- And I move the cursor to 3
11
+ And I move the cursor to (0,3)
12
12
  And I press the Delete key in the edit tab
13
13
  Then the contents should be "foobar\r\nbaz\r\n"
14
14
 
15
15
  Scenario: Backspace at start of line deletes delimiter (Windows)
16
16
  When I open a new edit tab
17
17
  And I replace the contents with "foo\r\nbar\r\nbaz\r\n"
18
- And I move the cursor to 5
18
+ And I move the cursor to (1,0)
19
19
  And I press the Backspace key in the edit tab
20
20
  Then the contents should be "foobar\r\nbaz\r\n"
21
21
 
@@ -27,21 +27,21 @@ Feature: Line delimiter
27
27
  Scenario: Delete at end of line deletes delimiter (Unix)
28
28
  When I open a new edit tab
29
29
  And I replace the contents with "foo\nbar\nbaz\n"
30
- And I move the cursor to 3
30
+ And I move the cursor to (0,3)
31
31
  And I press the Delete key in the edit tab
32
32
  Then the contents should be "foobar\nbaz\n"
33
33
 
34
34
  Scenario: Backspace at start of line deletes delimiter (Windows)
35
35
  When I open a new edit tab
36
36
  And I replace the contents with "foo\nbar\nbaz\n"
37
- And I move the cursor to 4
37
+ And I move the cursor to (1,0)
38
38
  And I press the Backspace key in the edit tab
39
39
  Then the contents should be "foobar\nbaz\n"
40
40
 
41
41
  Scenario: End goes to end of line (Windows)
42
42
  When I open a new edit tab
43
43
  And I replace the contents with "foo\r\nbar\r\nbaz\r\n"
44
- And I move the cursor to 0
45
- And I run the command Redcar::Top::MoveEndCommand
46
- Then the cursor should be at 3
44
+ And I move the cursor to (0,0)
45
+ And I select menu item "Edit|Document Navigation|End"
46
+ Then the cursor should be at (0,3)
47
47
 
@@ -1,48 +1,48 @@
1
- Feature: Multiple windows
2
-
3
- Scenario: Start with one window
4
- Then there should be one window
5
-
6
- Scenario: Open a new window
7
- When I open a new window
8
- Then there should be 2 windows
9
-
10
- Scenario: Open two new windows
11
- When I open a new window
12
- And I open a new window
13
- Then there should be 3 windows
14
-
15
- Scenario Outline: Close a window
16
- When I open a new window with title "Second"
17
- And I close the window <how>
18
- Then there should be one window
19
- And the window should be titled "Redcar"
20
-
21
- Examples:
22
- | how |
23
- | with a command |
24
- | through the gui |
25
-
26
- Scenario: A new window is focussed
27
- When I open a new window with title "Second"
28
- And I open a new edit tab
29
- Then the window "Second" should have 1 tab
30
-
31
- Scenario: The focus returns the first window when I close the second
32
- When I open a new window with title "Second"
33
- And I close the window "Second" through the gui
34
- And I open a new edit tab
35
- Then the window "Redcar" should have 1 tab
36
-
37
- Scenario Outline: Can focus on each window
38
- When I open a new edit tab
39
- And I open a new window with title "Second"
40
- And I focus the window "Redcar" <how>
41
- And I open a new edit tab
42
- Then the window "Redcar" should have 2 tabs
43
- Then the window "Second" should have 0 tabs
44
-
45
- Examples:
46
- | how |
47
- | with a command |
48
- | through the gui |
1
+ # Feature: Multiple windows
2
+ #
3
+ # Scenario: Start with one window
4
+ # Then there should be one window
5
+ #
6
+ # Scenario: Open a new window
7
+ # When I open a new window
8
+ # Then there should be 2 windows
9
+ #
10
+ # Scenario: Open two new windows
11
+ # When I open a new window
12
+ # And I open a new window
13
+ # Then there should be 3 windows
14
+ #
15
+ # Scenario Outline: Close a window
16
+ # When I open a new window with title "Second"
17
+ # And I close the window <how>
18
+ # Then there should be one window
19
+ # And the window should be titled "Redcar"
20
+ #
21
+ # Examples:
22
+ # | how |
23
+ # | with a command |
24
+ # | through the gui |
25
+ #
26
+ # Scenario: A new window is focussed
27
+ # When I open a new window with title "Second"
28
+ # And I open a new edit tab
29
+ # Then the window "Second" should have 1 tab
30
+ #
31
+ # Scenario: The focus returns the first window when I close the second
32
+ # When I open a new window with title "Second"
33
+ # And I close the window "Second" through the gui
34
+ # And I open a new edit tab
35
+ # Then the window "Redcar" should have 1 tab
36
+ #
37
+ # Scenario Outline: Can focus on each window
38
+ # When I open a new edit tab
39
+ # And I open a new window with title "Second"
40
+ # And I focus the window "Redcar" <how>
41
+ # And I open a new edit tab
42
+ # Then the window "Redcar" should have 2 tabs
43
+ # Then the window "Second" should have 0 tabs
44
+ #
45
+ # Examples:
46
+ # | how |
47
+ # | with a command |
48
+ # | through the gui |