From ab144a6d312765a37aba0bc4bd9dd9d6bc3839f1 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Wed, 26 Dec 2012 21:26:30 -0800 Subject: [PATCH] removing the tree view core:close test, because cmd-w no longer closes the sidebar. --- src/packages/tree-view/spec/tree-view-spec.coffee | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/packages/tree-view/spec/tree-view-spec.coffee b/src/packages/tree-view/spec/tree-view-spec.coffee index fbdca2edd..65da47380 100644 --- a/src/packages/tree-view/spec/tree-view-spec.coffee +++ b/src/packages/tree-view/spec/tree-view-spec.coffee @@ -194,19 +194,6 @@ describe "TreeView", -> expect(treeView).not.toMatchSelector(':focus') expect(rootView.getActiveEditor().isFocused).toBeTruthy() - describe "when core:close is triggered on the tree view", -> - it "detaches the TreeView, focuses the RootView and does not bubble the core:close event", -> - treeView.attach() - treeView.focus() - rootViewCloseHandler = jasmine.createSpy('rootViewCloseHandler') - rootView.on 'core:close', rootViewCloseHandler - spyOn(rootView, 'focus') - - treeView.trigger('core:close') - expect(rootView.focus).toHaveBeenCalled() - expect(rootViewCloseHandler).not.toHaveBeenCalled() - expect(treeView.hasParent()).toBeFalsy() - describe "when a directory's disclosure arrow is clicked", -> it "expands / collapses the associated directory", -> subdir = treeView.root.find('.entries > li:contains(dir1)').view()