 
         expect(pane.getItems().length).toBe 2
         expect(tabBar.getTabs().length).toBe 2
-        expect(tabBar.find('.tab:contains(Item 2)')).not.toExist()
-        expect(tabBar.find('.tab:contains(Item 1)')).toExist()
+        expect(tabBar.find('.tab:contains(Item 2)')).toExist()
+        expect(tabBar.find('.tab:contains(Item 1)')).not.toExist()
 
   describe "dragging and dropping tabs", ->
     describe "when a tab is dragged within the same pane", ->


    describe "when tabs:open-in-new-window is fired", ->
      it "opens new window, closes current tab", ->
        triggerMouseDownEvent(tabBar.tabForItem(item2), which: 3)
        expect(atom.workspace.getPanes().length).toBe 1

        spyOn(atom,'open')


  beforeEach ->
    deserializerDisposable = atom.deserializers.add(TestView)
    item1 = new TestView('Item 1', undefined, "squirrel", "sample.js")
    item2 = new TestView('Item 2')

    waitsForPromise ->
