This commit is contained in:
Justin Palmer
2013-02-13 14:16:20 -08:00
parent 7b1f9c86ad
commit 636bb21bbc

View File

@@ -469,10 +469,10 @@ describe "CommandPanel", ->
expect(editSession.getSelectedBufferRange()).toEqual operation.getBufferRange()
expect(previewList.focus).toHaveBeenCalled()
describe "when a path in the preview list is clicked", ->
it "shows and hides the matches for that path", ->
previewList.find('li.path:first-child').mousedown()
expect(previewList.find('li.path:first-child ul.matches')).toBeHidden()
describe "when a path in the preview list is clicked", ->
it "shows and hides the matches for that path", ->
previewList.find('li.path:first-child').mousedown()
expect(previewList.find('li.path:first-child ul.matches')).toBeHidden()
previewList.find('li.path:first-child').mousedown()
expect(previewList.find('li.path:first-child ul.matches')).toBeVisible()
previewList.find('li.path:first-child').mousedown()
expect(previewList.find('li.path:first-child ul.matches')).toBeVisible()