mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Add test: modified buffer terminates pending state
Test not yet passing. ::insertText is not triggering terminatePendingState. Not sure why...
This commit is contained in:
@@ -5821,3 +5821,11 @@ describe "TextEditor", ->
|
||||
editor1.terminatePendingState()
|
||||
expect(editor1.isPending()).toBe false
|
||||
expect(events).toEqual [editor1]
|
||||
|
||||
it "should terminate pending state when buffer is changed", ->
|
||||
events = []
|
||||
editor1.onDidTerminatePendingState (event) -> events.push(event)
|
||||
expect(editor1.isPending()).toBe true
|
||||
editor1.insertText('I\'ll be back!')
|
||||
expect(editor1.isPending()).toBe false
|
||||
expect(events).toEqual [editor1]
|
||||
|
||||
Reference in New Issue
Block a user