Add spec for serializing active grammars

This commit is contained in:
Kevin Sawicki
2014-06-23 16:41:46 -07:00
parent becdca0858
commit b1d7de8d43

View File

@@ -127,6 +127,17 @@ describe "Window", ->
expect(buffer.getSubscriptionCount()).toBe 0
it "stores the active grammars used by all the open editor", ->
waitsForPromise ->
atom.packages.activatePackage('language-javascript')
waitsForPromise ->
atom.workspace.open('sample.js')
runs ->
atom.unloadEditorWindow()
expect(atom.state.packagesWithActiveGrammars).toEqual ['language-javascript']
describe "drag and drop", ->
buildDragEvent = (type, files) ->
dataTransfer =