Logo: Relish

  1. Sign in

Project: Redcar

Kill Line

Scenarios
Killing 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 kill the line
Then
I should see "foo\nbonne\nbaz" in the edit tab
And
I should not see "bar" in the edit tab
Killing 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 kill the line
Then
I should see "foo\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
Killing 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 kill the line
Then
the contents should be "foo\nbonne\nbaz"

Last published over 5 years ago by danlucraft.