           icon: 'octoface'
           callback: 'editor:select-line'
           tooltip: 'Select line'
-        # jasmine.attachToDOM(toolBar)
         previouslyFocusedElement = document.activeElement
         toolBar.firstChild.dispatchEvent(new Event('mouseover'))
         toolBar.firstChild.focus()

          callback: 'application:about'
        jasmine.attachToDOM(toolBar)
        atom.commands.onWillDispatch spy = jasmine.createSpy()
        toolBar.children[0].click()
        expect(spy).toHaveBeenCalled()
        expect(spy.mostRecentCall.args[0].type).toEqual('application:about')
      it 'clicking button with callback function', ->

          icon: 'octoface'
          callback: spy = jasmine.createSpy()
        jasmine.attachToDOM(toolBar)
        toolBar.firstChild.click()
        expect(spy).toHaveBeenCalled()
      it 'clicking button with callback function containing data', ->
        button = toolBarAPI.addButton
          icon: 'octoface'
          callback: spy = jasmine.createSpy()
          data: 'foo'
        toolBar.firstChild.click()
        expect(spy).toHaveBeenCalled()
        expect(spy.mostRecentCall.args[0]).toEqual('foo')
