Skip to content

Commit

Permalink
Add test for collapsing elements after empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
joranvar committed Aug 17, 2016
1 parent 3d6d47e commit 03b0130
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions features/yafolding.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ Feature: Fold all lines
And I go to line 1
And I call yafolding-hide-element
Then I should see only 1 line

Scenario: Elements after empty lines should collapse correctly
Given I have a buffer with "test/data/issue-29.txt"
And I am on line 3
When I call yafolding-hide-all
Then I should see 5 lines
10 changes: 10 additions & 0 deletions test/data/issue-29.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
* Level 0

* Level 1
* Level 2
* Level 2
* Level 2

* Level 1 again
* Level 2
* Level 2

0 comments on commit 03b0130

Please sign in to comment.