Restore marker cleanup assertions

Now that EditSessions clean up their markers, we can pass these tests
again.
This commit is contained in:
Nathan Sobo 2013-02-06 17:01:56 -07:00
parent 0bd98bf8f8
commit 4fdb1c454e
2 changed files with 2 additions and 3 deletions

View File

@ -2057,7 +2057,7 @@ describe "EditSession", ->
editSession.autoDecreaseIndentForRow(1)
expect(editSession.lineForBufferRow(1)).toBe "}"
xdescribe ".destroy()", ->
describe ".destroy()", ->
it "destroys all markers associated with the edit session", ->
expect(buffer.getMarkerCount()).toBeGreaterThan 0
editSession.destroy()

View File

@ -16,8 +16,7 @@ describe "CommandInterpreter", ->
afterEach ->
editSession?.destroy()
# TODO: Restore this assertion when we stop leaking markers from edit session
# expect(buffer.getMarkerCount()).toBe 0
expect(buffer.getMarkerCount()).toBe 0
describe "addresses", ->
beforeEach ->