Use correct textmate package names

This commit is contained in:
Corey Johnson & Kevin Sawicki
2013-05-29 10:24:34 -07:00
parent 17a83933d4
commit f8f059d3fe
15 changed files with 124 additions and 53 deletions

View File

@@ -9,8 +9,8 @@ describe "GrammarSelector", ->
beforeEach ->
window.rootView = new RootView
atom.activatePackage('grammar-selector')
atom.activatePackage('text.tmbundle', sync: true)
atom.activatePackage('javascript.tmbundle', sync: true)
atom.activatePackage('text-tmbundle', sync: true)
atom.activatePackage('javascript-tmbundle', sync: true)
rootView.open('sample.js')
editor = rootView.getActiveView()
textGrammar = _.find syntax.grammars, (grammar) -> grammar.name is 'Plain Text'

View File

@@ -6,8 +6,8 @@ describe "link package", ->
[editor] = []
beforeEach ->
atom.activatePackage('javascript.tmbundle', sync: true)
atom.activatePackage('hyperlink-helper.tmbundle', sync: true)
atom.activatePackage('javascript-tmbundle', sync: true)
atom.activatePackage('hyperlink-helper-tmbundle', sync: true)
window.rootView = new RootView
rootView.open('sample.js')
atom.activatePackage('link')

View File

@@ -8,7 +8,7 @@ describe "MarkdownPreviewView", ->
beforeEach ->
project.setPath(project.resolve('markdown'))
buffer = project.bufferForPath('file.markdown')
atom.activatePackage('ruby.tmbundle', sync: true)
atom.activatePackage('ruby-tmbundle', sync: true)
preview = new MarkdownPreviewView(buffer)
afterEach ->

View File

@@ -8,7 +8,7 @@ Package = require 'package'
describe "Snippets extension", ->
[buffer, editor, editSession] = []
beforeEach ->
atom.activatePackage('javascript.tmbundle', sync: true)
atom.activatePackage('javascript-tmbundle', sync: true)
window.rootView = new RootView
rootView.open('sample.js')
@@ -235,7 +235,7 @@ describe "Snippets extension", ->
describe "snippet loading", ->
beforeEach ->
atom.loadPackage('package-with-broken-snippets.tmbundle', sync: true)
atom.loadPackage('package-with-broken-snippets-tmbundle', sync: true)
atom.loadPackage('package-with-snippets')
jasmine.unspy(window, "setTimeout")

View File

@@ -4,8 +4,8 @@ describe "Spell check", ->
[editor] = []
beforeEach ->
atom.activatePackage('text.tmbundle', sync: true)
atom.activatePackage('javascript.tmbundle', sync: true)
atom.activatePackage('text-tmbundle', sync: true)
atom.activatePackage('javascript-tmbundle', sync: true)
window.rootView = new RootView
rootView.open('sample.js')
config.set('spell-check.grammars', [])

View File

@@ -184,8 +184,8 @@ describe "StatusBar", ->
describe "grammar label", ->
beforeEach ->
atom.activatePackage('text.tmbundle', sync: true)
atom.activatePackage('javascript.tmbundle', sync: true)
atom.activatePackage('text-tmbundle', sync: true)
atom.activatePackage('javascript-tmbundle', sync: true)
it "displays the name of the current grammar", ->
expect(statusBar.find('.grammar-name').text()).toBe 'JavaScript'