mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Remove slow specs
This commit is contained in:
@@ -14,30 +14,14 @@ describe "App", ->
|
||||
|
||||
describe "open", ->
|
||||
describe "when opening a filePath", ->
|
||||
it "displays it in a new window", ->
|
||||
it "displays it in a new window with the contents of the file loaded", ->
|
||||
filePath = require.resolve 'fixtures/sample.txt'
|
||||
expect(app.windows().length).toBe 0
|
||||
|
||||
app.open filePath
|
||||
|
||||
expect(app.windows().length).toBe 1
|
||||
|
||||
it "loads a buffer with filePath contents", ->
|
||||
filePath = require.resolve 'fixtures/sample.txt'
|
||||
|
||||
app.open filePath
|
||||
|
||||
newWindow = app.windows()[0]
|
||||
expect(newWindow.rootView.editor.buffer.url).toEqual filePath
|
||||
expect(newWindow.rootView.editor.buffer.getText()).toEqual fs.read(filePath)
|
||||
|
||||
describe "when opening a dirPath", ->
|
||||
it "loads an empty buffer", ->
|
||||
dirPath = require.resolve 'fixtures'
|
||||
|
||||
app.open dirPath
|
||||
|
||||
newWindow = app.windows()[0]
|
||||
expect(newWindow.rootView.editor.buffer.url).toBeUndefined
|
||||
expect(newWindow.rootView.editor.buffer.getText()).toBe ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user