Sha256: cc7f166c0970cbd0bba7c34b02589ab988a277d6a003bbe1cd8371f469ee0c42

Contents?: true

Size: 1.82 KB

Versions: 45

Compression:

Stored size: 1.82 KB

Contents

Feature: Raise Text

Scenario: Raising a line swaps a line with its predecessor
  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 raise the text
  Then I should see "bar\nfoo\nbaz\nbonne" in the edit tab

Scenario: Raising a multi-line selection swaps it with the preceding line
  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 raise the text
  Then I should see "bar\nbaz\nfoo\nbonne" in the edit tab

Scenario: The first line of a document cannot be raised
  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 raise the text
  Then I should see "foo\nbar\nbaz\nbonne" in the edit tab

Scenario: The second line should be able to be raised to become first
  When I open a new edit tab
  And I replace the contents with "foo\nbar\nbaz\nbonne"
  And I move the cursor to 4
  And I raise the text
  Then I should see "bar\nfoo\nbaz\nbonne" in the edit tab

Scenario: The last line should be able to be raised to become second-to-last
  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 raise the text
  Then I should see "foo\nbar\nbonne\nbaz" in the edit tab

Scenario: A multi-line selection including the first line of a document cannot be raised
  When I open a new edit tab
  And I replace the contents with "foo\nbar\nbaz\nbonne"
  And I select from 0 to 5
  And I raise the text
  Then I should see "foo\nbar\nbaz\nbonne" in the edit tab
  
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 raise the text
  Then the contents should be "bść\nfoo\nbaz\nbonne"

Version data entries

45 entries across 45 versions & 2 rubygems

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