Logo: Relish

  1. Sign in

Project: Redcar

Clear Line

Scenarios
Clearing a single line
When
I open a new edit tab
And
I replace the contents with "foo\nbar\nbonne\nbaz"
And
I move the cursor to 5
And
I clear the line
Then
I should see "foo\n\nbonne\nbaz" in the edit tab
And
I should not see "bar" in the edit tab
Clearing a multi-line selection
When
I open a new edit tab
And
I replace the contents with "foo\nbar\nbonne\nbaz"
And
I select from 5 to 9
And
I clear the line
Then
I should see "foo\n\n\nbaz" in the edit tab
And
I should not see "bar" in the edit tab
And
I should not see "bonne" in the edit tab
Clearing a single line with unicode
When
I open a new edit tab
And
I replace the contents with "foo\nbść\nbonne\nbaz"
And
I move the cursor to 5
And
I clear the line
Then
the contents should be "foo\n\nbonne\nbaz"

Last published over 5 years ago by danlucraft.