mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix foldBufferRow regression
This commit is contained in:
@@ -912,6 +912,20 @@ describe('TextMateLanguageMode', () => {
|
||||
}
|
||||
`)
|
||||
|
||||
range = languageMode.getFoldableRangeContainingPoint(Point(7, 0), 2)
|
||||
expect(simulateFold([range])).toBe(dedent `
|
||||
if (a) {
|
||||
b();
|
||||
if (c) {⋯
|
||||
}
|
||||
h()
|
||||
}
|
||||
i()
|
||||
if (j) {
|
||||
k()
|
||||
}
|
||||
`)
|
||||
|
||||
range = languageMode.getFoldableRangeContainingPoint(Point(1, Infinity), 2)
|
||||
expect(simulateFold([range])).toBe(dedent `
|
||||
if (a) {⋯
|
||||
|
||||
Reference in New Issue
Block a user