Add regression coverage for “hidden pane item after dragging” bug #4112

Refs bad0504e1d
This commit is contained in:
Nathan Sobo 2014-11-10 15:55:00 -07:00
parent f4ced3b078
commit 57f85e1720

View File

@ -144,12 +144,15 @@ describe "PaneView", ->
describe "when an item is moved to another pane", ->
it "detaches the item's view rather than removing it", ->
container.attachToDom()
expect(view1.is(':visible')).toBe true
paneModel2 = paneModel.splitRight()
view1.data('preservative', 1234)
paneModel.moveItemToPane(view1, paneModel2, 1)
expect(view1.data('preservative')).toBe 1234
paneModel2.activateItemAtIndex(1)
expect(view1.data('preservative')).toBe 1234
expect(view1.is(':visible')).toBe true
describe "when the title of the active item changes", ->
describe 'when there is no onDidChangeTitle method', ->