Don't allow web worker grammars to be registered

Grammars are already loaded at the beginning of the
specs synchronously and should not be overridden
when testing the background load task.
This commit is contained in:
Kevin Sawicki
2013-01-28 14:23:16 -08:00
parent 493ed5f006
commit ad8dd767e5

View File

@@ -60,6 +60,10 @@ describe "the `atom` global", ->
describe ".loadPackages()", ->
beforeEach ->
window.rootView = new RootView
spyOn(syntax, 'addGrammar')
afterEach ->
delete window.rootView
it "terminates the worker when all packages have been loaded", ->
spyOn(Worker.prototype, 'terminate').andCallThrough()