diff --git a/spec/app/atom-spec.coffee b/spec/app/atom-spec.coffee index e72499ca7..6738b2148 100644 --- a/spec/app/atom-spec.coffee +++ b/spec/app/atom-spec.coffee @@ -196,12 +196,12 @@ describe "the `atom` global", -> describe "textmate packages", -> it "loads the package's grammars", -> expect(syntax.selectGrammar("file.rb").name).toBe "Null Grammar" - atom.activatePackage('ruby.tmbundle', sync: true) + atom.activatePackage('ruby-tmbundle', sync: true) expect(syntax.selectGrammar("file.rb").name).toBe "Ruby" it "translates the package's scoped properties to Atom terms", -> expect(syntax.getProperty(['.source.ruby'], 'editor.commentStart')).toBeUndefined() - atom.activatePackage('ruby.tmbundle', sync: true) + atom.activatePackage('ruby-tmbundle', sync: true) expect(syntax.getProperty(['.source.ruby'], 'editor.commentStart')).toBe '# ' describe ".activatePackageConfig(id)", -> @@ -267,14 +267,14 @@ describe "the `atom` global", -> describe "texmate packages", -> it "removes the package's grammars", -> expect(syntax.selectGrammar("file.rb").name).toBe "Null Grammar" - atom.activatePackage('ruby.tmbundle', sync: true) + atom.activatePackage('ruby-tmbundle', sync: true) expect(syntax.selectGrammar("file.rb").name).toBe "Ruby" - atom.deactivatePackage('ruby.tmbundle') + atom.deactivatePackage('ruby-tmbundle') expect(syntax.selectGrammar("file.rb").name).toBe "Null Grammar" it "removes the package's scoped properties", -> - atom.activatePackage('ruby.tmbundle', sync: true) - atom.deactivatePackage('ruby.tmbundle') + atom.activatePackage('ruby-tmbundle', sync: true) + atom.deactivatePackage('ruby-tmbundle') expect(syntax.getProperty(['.source.ruby'], 'editor.commentStart')).toBeUndefined() describe ".getVersion(callback)", -> diff --git a/spec/app/display-buffer-spec.coffee b/spec/app/display-buffer-spec.coffee index fb98d6272..c02f334c6 100644 --- a/spec/app/display-buffer-spec.coffee +++ b/spec/app/display-buffer-spec.coffee @@ -6,7 +6,7 @@ describe "DisplayBuffer", -> [displayBuffer, buffer, changeHandler, tabLength] = [] beforeEach -> tabLength = 2 - atom.activatePackage('javascript.tmbundle', sync: true) + atom.activatePackage('javascript-tmbundle', sync: true) buffer = project.bufferForPath('sample.js') displayBuffer = new DisplayBuffer(buffer, { tabLength }) displayBuffer.on 'changed', changeHandler = jasmine.createSpy 'changeHandler' diff --git a/spec/app/edit-session-spec.coffee b/spec/app/edit-session-spec.coffee index 183a14310..3ed5238a4 100644 --- a/spec/app/edit-session-spec.coffee +++ b/spec/app/edit-session-spec.coffee @@ -9,7 +9,7 @@ describe "EditSession", -> buffer.setText(buffer.getText().replace(/[ ]{2}/g, "\t")) beforeEach -> - atom.activatePackage('javascript.tmbundle', sync: true) + atom.activatePackage('javascript-tmbundle', sync: true) editSession = project.open('sample.js', autoIndent: false) buffer = editSession.buffer lineLengths = buffer.getLines().map (line) -> line.length diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index 8cf8b30e8..19f7e4d0b 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -13,8 +13,8 @@ describe "Editor", -> [buffer, editor, editSession, cachedLineHeight, cachedCharWidth] = [] 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) editSession = project.open('sample.js') buffer = editSession.buffer editor = new Editor(editSession) diff --git a/spec/app/language-mode-spec.coffee b/spec/app/language-mode-spec.coffee index 662ebf182..adcd9b868 100644 --- a/spec/app/language-mode-spec.coffee +++ b/spec/app/language-mode-spec.coffee @@ -10,7 +10,7 @@ describe "LanguageMode", -> describe "javascript", -> beforeEach -> - atom.activatePackage('javascript.tmbundle', sync: true) + atom.activatePackage('javascript-tmbundle', sync: true) editSession = project.open('sample.js', autoIndent: false) { buffer, languageMode } = editSession @@ -88,7 +88,7 @@ describe "LanguageMode", -> describe "css", -> beforeEach -> - atom.activatePackage('css.tmbundle', sync: true) + atom.activatePackage('css-tmbundle', sync: true) editSession = project.open('css.css', autoIndent: false) { buffer, languageMode } = editSession diff --git a/spec/app/syntax-spec.coffee b/spec/app/syntax-spec.coffee index 6f5ece9df..50917c30c 100644 --- a/spec/app/syntax-spec.coffee +++ b/spec/app/syntax-spec.coffee @@ -2,10 +2,10 @@ fsUtils = require 'fs-utils' describe "the `syntax` global", -> 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) atom.activatePackage('coffee-script-tmbundle', sync: true) - atom.activatePackage('ruby.tmbundle', sync: true) + atom.activatePackage('ruby-tmbundle', sync: true) describe "serialization", -> it "remembers grammar overrides by path", -> @@ -18,7 +18,7 @@ describe "the `syntax` global", -> describe ".selectGrammar(filePath)", -> it "can use the filePath to load the correct grammar based on the grammar's filetype", -> - atom.activatePackage('git.tmbundle', sync: true) + atom.activatePackage('git-tmbundle', sync: true) expect(syntax.selectGrammar("file.js").name).toBe "JavaScript" # based on extension (.js) expect(syntax.selectGrammar("/tmp/.git/config").name).toBe "Git Config" # based on end of the path (.git/config) @@ -31,7 +31,7 @@ describe "the `syntax` global", -> expect(syntax.selectGrammar(filePath).name).toBe "Ruby" it "uses the number of newlines in the first line regex to determine the number of lines to test against", -> - atom.activatePackage('property-list.tmbundle', sync: true) + atom.activatePackage('property-list-tmbundle', sync: true) fileContent = "first-line\n" expect(syntax.selectGrammar("dummy.coffee", fileContent).name).toBe "CoffeeScript" diff --git a/spec/app/text-mate-grammar-spec.coffee b/spec/app/text-mate-grammar-spec.coffee index 382d549e4..b9985012a 100644 --- a/spec/app/text-mate-grammar-spec.coffee +++ b/spec/app/text-mate-grammar-spec.coffee @@ -8,17 +8,17 @@ describe "TextMateGrammar", -> grammar = null 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) atom.activatePackage('coffee-script-tmbundle', sync: true) - atom.activatePackage('ruby.tmbundle', sync: true) - atom.activatePackage('html.tmbundle', sync: true) - atom.activatePackage('php.tmbundle', sync: true) + atom.activatePackage('ruby-tmbundle', sync: true) + atom.activatePackage('html-tmbundle', sync: true) + atom.activatePackage('php-tmbundle', sync: true) grammar = syntax.selectGrammar("hello.coffee") describe "@loadSync(path)", -> - it "loads grammars from plists", -> - grammar = TextMateGrammar.loadSync(fsUtils.resolveOnLoadPath('packages/text.tmbundle/Syntaxes/Plain text.plist')) + it "loads grammars from plists", -> + grammar = TextMateGrammar.loadSync(fsUtils.resolveOnLoadPath('fixtures/sample.plist')) expect(grammar.scopeName).toBe "text.plain" {tokens} = grammar.tokenizeLine("this text is so plain. i love it.") expect(tokens[0]).toEqual value: "this text is so plain. i love it.", scopes: ["text.plain", "meta.paragraph.text"] @@ -212,7 +212,7 @@ describe "TextMateGrammar", -> describe "when the pattern includes rules from another grammar", -> describe "when a grammar matching the desired scope is available", -> it "parses tokens inside the begin/end patterns based on the included grammar's rules", -> - atom.activatePackage('html.tmbundle', sync: true) + atom.activatePackage('html-tmbundle', sync: true) atom.activatePackage('ruby-on-rails-tmbundle', sync: true) grammar = syntax.selectGrammar('foo.html.erb') @@ -243,7 +243,7 @@ describe "TextMateGrammar", -> expect(tokens[22]).toEqual value: '>', scopes: ["text.html.ruby","meta.tag.block.any.html","punctuation.definition.tag.end.html"] it "updates the grammar if the included grammar is updated later", -> - atom.activatePackage('html.tmbundle', sync: true) + atom.activatePackage('html-tmbundle', sync: true) atom.activatePackage('ruby-on-rails-tmbundle', sync: true) grammar = syntax.selectGrammar('foo.html.erb') @@ -253,7 +253,7 @@ describe "TextMateGrammar", -> {tokens} = grammar.tokenizeLine("