mirror of
https://github.com/atom/atom.git
synced 2026-02-10 06:35:00 -05:00
Moving up in tree view doesn't skip over files inside of directories
This commit is contained in:
@@ -197,6 +197,16 @@ describe "TreeView", ->
|
||||
treeView.trigger 'move-up'
|
||||
expect(treeView.root.find('.entry:last')).toHaveClass 'selected'
|
||||
|
||||
describe "when there is an expanded directory before the currently selected entry", ->
|
||||
it "selects the last entry in the expanded directory", ->
|
||||
lastDir = treeView.root.find('.directory:last').view()
|
||||
fileAfterDir = lastDir.next().view()
|
||||
lastDir.expand()
|
||||
fileAfterDir.click()
|
||||
|
||||
treeView.trigger 'move-up'
|
||||
expect(lastDir.find('.entry:last')).toHaveClass 'selected'
|
||||
|
||||
describe "when there is an entry before the currently selected entry", ->
|
||||
it "selects the previous entry", ->
|
||||
lastEntry = treeView.root.find('.entry:last')
|
||||
@@ -212,7 +222,6 @@ describe "TreeView", ->
|
||||
subdir.expand()
|
||||
subdir.find('> .entries > .entry:first').click()
|
||||
|
||||
|
||||
treeView.trigger 'move-up'
|
||||
|
||||
expect(subdir).toHaveClass 'selected'
|
||||
|
||||
Reference in New Issue
Block a user