mirror of
https://github.com/atom/atom.git
synced 2026-01-22 05:17:57 -05:00
Use workspace.open instead of project.open
This commit is contained in:
@@ -278,7 +278,7 @@ describe "Git", ->
|
||||
|
||||
it "subscribes to all the serialized buffers in the project", ->
|
||||
waitsForPromise ->
|
||||
atom.project.open('sample.js')
|
||||
atom.workspace.open('sample.js')
|
||||
|
||||
runs ->
|
||||
project2 = atom.project.testSerialization()
|
||||
|
||||
@@ -60,18 +60,18 @@ describe "WorkspaceView", ->
|
||||
pane4 = pane2.splitDown()
|
||||
|
||||
waitsForPromise ->
|
||||
atom.project.open('b').then (editor) ->
|
||||
atom.workspace.open('b').then (editor) ->
|
||||
pane2.activateItem(editor)
|
||||
|
||||
waitsForPromise ->
|
||||
atom.project.open('../sample.js').then (editor) ->
|
||||
atom.workspace.open('../sample.js').then (editor) ->
|
||||
pane3.activateItem(editor)
|
||||
|
||||
runs ->
|
||||
pane3.activeItem.setCursorScreenPosition([2, 4])
|
||||
|
||||
waitsForPromise ->
|
||||
atom.project.open('../sample.txt').then (editor) ->
|
||||
atom.workspace.open('../sample.txt').then (editor) ->
|
||||
pane4.activateItem(editor)
|
||||
|
||||
runs ->
|
||||
|
||||
Reference in New Issue
Block a user