       expect(pane.getItems().indexOf(editor1)).toBe -1
       expect(editor1.destroyed).toBeTruthy()
       expect(tabBar.getTabs().length).toBe 2
-      expect(tabBar.find('.tab:contains(sample.js)')).not.toExist()
+      expect(tabBar.find('tabs-tab:contains(sample.js)')).not.toExist()
 
   describe "when a tab's close icon is clicked", ->
     it "destroys the tab's item on the pane", ->

      expect(pane.getItems().indexOf(editor1)).toBe -1
      expect(editor1.destroyed).toBeTruthy()
      expect(tabBar.getTabs().length).toBe 2
      expect(tabBar.find('.tab:contains(sample.js)')).not.toExist()

  describe "when a tab item's title changes", ->
    it "updates the title of the item's tab", ->


  describe "when an item has an icon defined", ->
    it "displays the icon on the tab", ->
      expect(tabBar.find('tabs-tab:eq(0) .title')).toHaveClass "icon"
      expect(tabBar.find('tabs-tab:eq(0) .title')).toHaveClass "icon-squirrel"

    it "hides the icon from the tab if the icon is removed", ->
      item1.getIconName = null
      item1.emitIconChanged()
      expect(tabBar.find('tabs-tab:eq(0) .title')).not.toHaveClass "icon"
      expect(tabBar.find('tabs-tab:eq(0) .title')).not.toHaveClass "icon-squirrel"

    it "updates the icon on the tab if the icon is changed", ->
      item1.getIconName = -> "zap"
      item1.emitIconChanged()
      expect(tabBar.find('tabs-tab:eq(0) .title')).toHaveClass "icon"
      expect(tabBar.find('tabs-tab:eq(0) .title')).toHaveClass "icon-zap"

    describe "when showIcon is set to true in package settings", ->
      beforeEach ->
