Use Project::bufferForPathSync instead of buildBufferSync

This commit is contained in:
Kevin Sawicki
2013-11-15 10:59:49 -08:00
parent 1d7b4c5f9a
commit 0b12f01206
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ describe "Selection", ->
[buffer, editSession, selection] = []
beforeEach ->
buffer = project.buildBufferSync('sample.js')
buffer = project.bufferForPathSync('sample.js')
editSession = new EditSession(buffer: buffer, tabLength: 2)
selection = editSession.getSelection()

View File

@@ -350,7 +350,7 @@ describe "TokenizedBuffer", ->
describe "when the buffer contains surrogate pairs", ->
beforeEach ->
atom.activatePackage('language-javascript', sync: true)
buffer = project.buildBufferSync 'sample-with-pairs.js'
buffer = project.bufferForPathSync 'sample-with-pairs.js'
buffer.setText """
'abc\uD835\uDF97def'
//\uD835\uDF97xyz