Sha256: 92c29576c4f37836d7674c134b509bdf1ca8e5cda0fcafac8955826f1064aaff

Contents?: true

Size: 1.91 KB

Versions: 36

Compression:

Stored size: 1.91 KB

Contents

Feature: Lower Text

Scenario: Lowering a single line
  When I open a new edit tab
  And I replace the contents with "foo\nbar\nbaz\nbonne"
  And I move the cursor to 5
  And I lower the text
  Then I should see "foo\nbaz\nbar\nbonne" in the edit tab

Scenario: Lowering a multi-line selection
  When I open a new edit tab
  And I replace the contents with "foo\nbar\nbaz\nbonne"
  And I select from 5 to 9
  And I lower the text
  Then I should see "foo\nbonne\nbar\nbaz" in the edit tab
  And the selected text should be "bar\nbaz"

Scenario: Lowering the last line of a document
  When I open a new edit tab
  And I replace the contents with "foo\nbar\nbaz\nbonne"
  And I move the cursor to 12
  And I lower the text
  Then I should see "foo\nbar\nbaz\nbonne" in the edit tab
  And I should not see "foo\nbar\nbaz\n\nbonne" in the edit tab

Scenario: Lowering the first line of a document
  When I open a new edit tab
  And I replace the contents with "foo\nbar\nbaz\nbonne"
  And I move the cursor to 0
  And I lower the text
  Then I should see "bar\nfoo\nbaz\nbonne" in the edit tab

Scenario: Lowering the second-to-last line of a document
  When I open a new edit tab
  And I replace the contents with "foo\nbar\nbaz\nbonne"
  And I move the cursor to 8
  And I lower the text
  Then I should see "foo\nbar\nbonne\nbaz" in the edit tab

Scenario: Lowering a multi-line selection including the last line of a document
  When I open a new edit tab
  And I replace the contents with "foo\nbar\nbaz\nbonne"
  And I select from 8 to 12
  And I lower the text
  Then I should see "foo\nbar\nbonne\nbaz" in the edit tab
  And I should not see "foo\nbar\n\nbaz\nbonne" in the edit tab
  And the selected text should be "baz"

Scenario: Should work with unicode
  When I open a new edit tab
  And I replace the contents with "foo\nbść\nbaz\nbonne"
  And I move the cursor to 5
  And I lower the text
  Then the contents should be "foo\nbaz\nbść\nbonne"

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
redcar-0.13 plugins/line_tools/features/lower_text.feature
redcar-dev-0.13.5dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.13.4dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.13.3dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.13.2dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.13.1dev plugins/line_tools/features/lower_text.feature
redcar-0.12.1 plugins/line_tools/features/lower_text.feature
redcar-dev-0.13.0dev plugins/line_tools/features/lower_text.feature
redcar-0.12 plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.27dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.26dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.25dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.24dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.23dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.22dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.21dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.20dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.19dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.18dev plugins/line_tools/features/lower_text.feature
redcar-dev-0.12.17dev plugins/line_tools/features/lower_text.feature