To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorLower Text
- Scenarios
-
- Lowering a single line
- Lowering a multi-line selection
- Lowering the last line of a document
- Lowering the first line of a document
- Lowering the second-to-last line of a document
- Lowering a multi-line selection including the last line of a document
- Should work with unicode
- 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
- 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
- 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
- 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
- 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
- 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\nbaz\nbonne" in the edit tab
- And
- I should not see "foo\nbar\n\nbaz\nbonne" in the edit tab
- 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"
Last published almost 7 years ago by danlucraft.