mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
Restore marker cleanup assertions
Now that EditSessions clean up their markers, we can pass these tests again.
This commit is contained in:
parent
0bd98bf8f8
commit
4fdb1c454e
@ -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()
|
||||
|
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user