Convert text-editor-component-spec to Babel for async/await

It's much easier to reason about async/await than Jasmine's
built-in queuing system, and using them made it easier to
debug flaky async tests.
This commit is contained in:
Nathan Sobo
2015-11-06 17:29:12 -07:00
parent bddb601b45
commit e9dfc080a3
5 changed files with 4767 additions and 4112 deletions

View File

@@ -1076,7 +1076,7 @@ class DisplayBuffer extends Model
unless @didUpdateDecorationsEventScheduled
@didUpdateDecorationsEventScheduled = true
process.nextTick =>
global.setImmediate =>
@didUpdateDecorationsEventScheduled = false
@emitter.emit 'did-update-decorations'