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.
- data/CHANGES +4 -2
- data/README.md +5 -41
- data/Rakefile +3 -35
- data/lib/redcar.rb +19 -17
- data/lib/redcar/runner.rb +1 -7
- data/lib/redcar_quick_start.rb +5 -5
- data/plugins/application/features/main_menu.feature +1 -1
- data/plugins/application/features/step_definitions/command_steps.rb +8 -7
- data/plugins/application/features/step_definitions/filter_list_dialog_steps.rb +25 -10
- data/plugins/application/features/step_definitions/key_steps.rb +6 -4
- data/plugins/application/features/step_definitions/menu_steps.rb +27 -26
- data/plugins/application/features/step_definitions/speedbar_steps.rb +28 -16
- data/plugins/application/features/step_definitions/tree_steps.rb +88 -64
- data/plugins/application/features/step_definitions/window_steps.rb +14 -10
- data/plugins/application/features/support/env.rb +85 -83
- data/plugins/application/spec/application/application_spec.rb +1 -1
- data/plugins/application/spec/application/clipboard_spec.rb +1 -1
- data/plugins/application/spec/application/command/executor_spec.rb +1 -1
- data/plugins/application/spec/application/command/history_spec.rb +1 -1
- data/plugins/application/spec/application/command_spec.rb +1 -1
- data/plugins/application/spec/application/keymap/builder_spec.rb +1 -1
- data/plugins/application/spec/application/menu/builder_spec.rb +1 -1
- data/plugins/application/spec/application/menu/menu_item_spec.rb +1 -1
- data/plugins/application/spec/application/menu_spec.rb +1 -1
- data/plugins/application/spec/application/navigation_history_spec.rb +2 -0
- data/plugins/application/spec/application/notebook_spec.rb +1 -1
- data/plugins/application/spec/application/sensitive_spec.rb +1 -1
- data/plugins/application/spec/application/speedbar_spec.rb +1 -1
- data/plugins/application/spec/application/treebook_spec.rb +1 -1
- data/plugins/application/spec/application/window_spec.rb +1 -1
- data/plugins/application/spec/spec_helper.rb +4 -6
- data/plugins/application_swt/lib/application_swt/dialogs/filter_list_dialog_controller.rb +1 -1
- data/plugins/application_swt/lib/application_swt/gradient.rb +15 -5
- data/plugins/application_swt/lib/application_swt/window.rb +1 -1
- data/plugins/application_swt/spec/application_swt/gradient_spec.rb +13 -14
- data/plugins/application_swt/spec/application_swt/menu/binding_translator_spec.rb +1 -1
- data/plugins/application_swt/spec/application_swt/menu_spec.rb +1 -1
- data/plugins/application_swt/spec/spec_helper.rb +1 -19
- data/plugins/auto_completer/features/auto_complete.feature +7 -7
- data/plugins/auto_completer/features/step_definitions/auto_complete_steps.rb +3 -1
- data/plugins/auto_completer/features/step_definitions/dependency_steps.rb +0 -0
- data/plugins/auto_indenter/features/java_style_indentation.feature +5 -3
- data/plugins/auto_indenter/features/ruby_style_indentation.feature +13 -13
- data/plugins/auto_indenter/features/step_definitions/indentation_steps.rb +3 -1
- data/plugins/auto_indenter/spec/auto_indenter/analyzer_spec.rb +1 -1
- data/plugins/auto_indenter/spec/spec_helper.rb +1 -5
- data/plugins/auto_pairer/features/auto_pairer.feature +1 -1
- data/plugins/comment/features/line_comment.feature +31 -26
- data/plugins/comment/features/selection_comment.feature +1 -1
- data/plugins/comment/features/step_definitions/comment_steps.rb +6 -2
- data/plugins/comment/vendor/comment_lib.json +2 -0
- data/plugins/core/lib/core.rb +26 -0
- data/plugins/core/spec/core/base_storage_spec.rb +1 -1
- data/plugins/core/spec/core/gui_spec.rb +1 -1
- data/plugins/core/spec/core/observable_spec.rb +2 -1
- data/plugins/core/spec/core/persistent_cache_spec.rb +1 -1
- data/plugins/core/spec/core/shared_storage_spec.rb +1 -1
- data/plugins/core/spec/core/storage_spec.rb +1 -1
- data/plugins/core/spec/core/task_queue_spec.rb +1 -3
- data/plugins/core/spec/spec_helper.rb +1 -4
- data/plugins/declarations/spec/declarations/file_spec.rb +1 -1
- data/plugins/declarations/spec/spec_helper.rb +1 -5
- data/plugins/document_search/features/find.feature +39 -39
- data/plugins/document_search/features/step_definitions/find_steps.rb +6 -2
- data/plugins/edit_view/features/align_assignment.feature +6 -82
- data/plugins/edit_view/features/case_change.feature +22 -22
- data/plugins/edit_view/features/cursor_navigation.feature +2 -2
- data/plugins/edit_view/features/cut_and_paste.feature +9 -9
- data/plugins/edit_view/features/indentation_commands.feature +8 -8
- data/plugins/edit_view/features/line_delimiter.feature +7 -7
- data/plugins/edit_view/features/multiple_windows.feature +48 -48
- data/plugins/edit_view/features/step_definitions/dependency_steps.rb +0 -0
- data/plugins/edit_view/features/step_definitions/editing_steps.rb +237 -127
- data/plugins/edit_view/features/step_definitions/grammar_steps.rb +5 -1
- data/plugins/edit_view/features/step_definitions/notebook_steps.rb +38 -24
- data/plugins/edit_view/features/step_definitions/tab_steps.rb +83 -45
- data/plugins/edit_view/features/step_definitions/window_steps.rb +75 -54
- data/plugins/edit_view/features/support/env.rb +4 -23
- data/plugins/edit_view/lib/edit_view/commands/align_assignment_command.rb +29 -30
- data/plugins/edit_view/lib/edit_view/document.rb +23 -0
- data/plugins/edit_view/spec/edit_view/commands/align_assignment_command_spec.rb +83 -0
- data/plugins/edit_view/spec/edit_view/document/indentation_spec.rb +1 -1
- data/plugins/edit_view/spec/edit_view/document_spec.rb +1 -1
- data/plugins/edit_view/spec/spec_helper.rb +1 -4
- data/plugins/edit_view_swt/spec/edit_view_swt/word_movement_spec.rb +1 -1
- data/plugins/edit_view_swt/spec/spec_helper.rb +1 -4
- data/plugins/html_view/features/fixtures/sample.html +1 -1
- data/plugins/html_view/features/step_definitions/html_view_steps.rb +40 -39
- data/plugins/java/features/syntax_check_java.feature +18 -16
- data/plugins/line_tools/features/step_definitions/line_tools_steps.rb +18 -6
- data/plugins/macros/features/block_selection_in_macros.feature +47 -47
- data/plugins/macros/features/step_definitions/macro_steps.rb +9 -3
- data/plugins/macros/features/step_definitions/prediction_steps.rb +6 -2
- data/plugins/macros/plugin.rb +2 -1
- data/plugins/macros/spec/macros/predictive/sequence_finder_spec.rb +1 -1
- data/plugins/macros/spec/spec_helper.rb +1 -6
- data/plugins/outline_view/features/outline_view.feature +5 -5
- data/plugins/outline_view/features/step_definitions/outline_steps.rb +29 -17
- data/plugins/plugin_manager_ui/lib/plugin_manager_ui.rb +1 -1
- data/plugins/project/features/close_directory_tree.feature +0 -12
- data/plugins/project/features/open_directory_tree.feature +1 -2
- data/plugins/project/features/step_definitions/directory_steps.rb +13 -5
- data/plugins/project/features/step_definitions/file_steps.rb +23 -9
- data/plugins/project/features/step_definitions/find_file_steps.rb +6 -2
- data/plugins/project/features/step_definitions/project_tree_steps.rb +6 -2
- data/plugins/project/features/watch_for_modified_files.feature +1 -1
- data/plugins/project/spec/project/adapters/remote_protocols/ftp_spec.rb +1 -1
- data/plugins/project/spec/project/adapters/remote_protocols/sftp_spec.rb +1 -1
- data/plugins/project/spec/project/adapters/remote_spec.rb +1 -1
- data/plugins/project/spec/project/dir_mirror_spec.rb +1 -1
- data/plugins/project/spec/project/file_list_spec.rb +1 -1
- data/plugins/project/spec/project/file_mirror_spec.rb +2 -1
- data/plugins/project/spec/spec_helper.rb +1 -4
- data/plugins/project_search/spec/project_search/binary_data_detector_spec.rb +1 -1
- data/plugins/project_search/spec/project_search/word_search_spec.rb +1 -1
- data/plugins/project_search/spec/spec_helper.rb +1 -4
- data/plugins/{application → redcar}/features/navigation_history.feature +8 -8
- data/plugins/redcar/features/step_definitions/font_steps.rb +9 -5
- data/plugins/redcar/redcar.rb +0 -26
- data/plugins/repl/features/step_definitions/repl_steps.rb +15 -5
- data/plugins/repl/plugin.rb +1 -1
- data/plugins/repl/spec/repl/repl_mirror_spec.rb +1 -1
- data/plugins/repl/spec/spec_helper.rb +1 -4
- data/plugins/ruby/spec/ruby/repl_mirror_spec.rb +1 -1
- data/plugins/ruby/spec/spec_helper.rb +1 -5
- data/plugins/runnables/features/parameter_input.feature +43 -43
- data/plugins/runnables/features/step_definitions/runnable_steps.rb +9 -3
- data/plugins/runnables/plugin.rb +2 -2
- data/plugins/runnables/spec/runnables/output_processor_spec.rb +1 -1
- data/plugins/runnables/spec/spec_helper.rb +1 -5
- data/plugins/scm_svn/features/add_and_commit.feature +1 -0
- data/plugins/scm_svn/features/checkout.feature +1 -0
- data/plugins/scm_svn/features/edit_and_index.feature +1 -0
- data/plugins/scm_svn/features/ignore_files.feature +1 -0
- data/plugins/scm_svn/features/merge.feature +1 -0
- data/plugins/scm_svn/features/resolve_conflict.feature +1 -0
- data/plugins/scm_svn/features/revert_and_delete.feature +1 -0
- data/plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb +14 -9
- data/plugins/scm_svn/features/support/env.rb +4 -4
- data/plugins/scm_svn/features/switch_branches.feature +1 -0
- data/plugins/scm_svn/features/update.feature +1 -0
- data/plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature +4 -4
- data/plugins/test_runner/plugin.rb +3 -1
- data/plugins/test_runner/spec/run_test_command_spec.rb +58 -50
- data/plugins/test_runner/spec/spec_helper.rb +1 -5
- data/plugins/textmate/features/step_definitions/tree_steps.rb +2 -0
- data/plugins/todo_list/features/todo_list.feature +1 -1
- data/plugins/todo_list/spec/spec_helper.rb +1 -4
- data/plugins/todo_list/spec/todo_list/file_parser_spec.rb +1 -1
- data/plugins/tree_view_swt/lib/tree_view_swt.rb +2 -1
- data/plugins/web_bookmarks/features/step_definitions/web_steps.rb +1 -1
- metadata +48 -48
- data/lib/redcar/installer.rb +0 -178
- data/plugins/key_bindings/spec/spec_helper.rb +0 -5
- 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
|
-
|
|
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
|
-
|
|
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
|
|
7
|
+
When I type "a = 4\nbc = 5\nd = 123"
|
|
8
8
|
And I select all
|
|
9
|
-
And I
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
9
|
-
And I
|
|
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
|
|
15
|
-
And I
|
|
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
|
|
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
|
|
27
|
-
And I
|
|
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
|
|
33
|
-
And I
|
|
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
|
|
37
|
-
And I
|
|
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
|
|
43
|
-
And I
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
63
|
+
And I select menu item "Edit|Formatting|Convert Text|Toggle PascalCase-underscore-camelCase"
|
|
64
64
|
Then the contents should be "curryChicken<c>"
|
|
65
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
38
|
+
And I select 3 from (0,0)
|
|
39
39
|
And I copy text
|
|
40
|
-
And I select from 3
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
48
|
-
And I
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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 |
|