mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Right arrow expands the selected directory in TreeView
This commit is contained in:
@@ -179,3 +179,17 @@ describe "TreeView", ->
|
||||
treeView.trigger 'move-up'
|
||||
expect(rootDirectoryView).toHaveClass 'selected'
|
||||
|
||||
describe "tree-view:expand-directory", ->
|
||||
describe "when a directory entry is selected", ->
|
||||
it "expands the current directory", ->
|
||||
subdir = rootDirectoryView.find('.directory:first')
|
||||
subdir.click()
|
||||
|
||||
expect(subdir).not.toHaveClass 'expanded'
|
||||
treeView.trigger 'tree-view:expand-directory'
|
||||
expect(subdir).toHaveClass 'expanded'
|
||||
|
||||
describe "when a file entry is selected", ->
|
||||
it "does nothing", ->
|
||||
rootDirectoryView.find('.file').click()
|
||||
treeView.trigger 'tree-view:expand-directory'
|
||||
|
||||
Reference in New Issue
Block a user