 
   describe "css", ->
     beforeEach ->
-      atom.packages.activatePackage('language-css', sync: true)
       editor = atom.project.openSync('css.css', autoIndent: false)
       {buffer, languageMode} = editor
+
+      waitsForPromise ->
+        atom.packages.activatePackage('language-css')
 
     describe ".toggleLineCommentsForBufferRows(start, end)", ->
       it "comments/uncomments lines in the given range", ->


  describe "coffeescript", ->
    beforeEach ->
      atom.packages.activatePackage('language-coffee-script', sync: true)
      editor = atom.project.openSync('coffee.coffee', autoIndent: false)
      {buffer, languageMode} = editor

    describe ".toggleLineCommentsForBufferRows(start, end)", ->
      it "comments/uncomments lines in the given range", ->


  describe "css", ->
    beforeEach ->
      editor = atom.project.openSync('css.css', autoIndent: true)

      waitsForPromise ->
        atom.packages.activatePackage('language-source')
        atom.packages.activatePackage('language-css')

    describe "suggestedIndentForBufferRow", ->
      it "does not return negative values (regression)", ->
