mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Revert "Don't pop-up save dialog in specs"
This reverts commit e0ad22d0bd.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
WorkspaceView = require '../src/workspace-view'
|
||||
EditorView = require '../src/editor-view'
|
||||
Pane = require '../src/pane'
|
||||
{$, $$} = require '../src/space-pen-extensions'
|
||||
_ = require 'underscore-plus'
|
||||
fs = require 'fs-plus'
|
||||
@@ -2751,8 +2750,6 @@ describe "EditorView", ->
|
||||
describe "when the editor view is attached but invisible", ->
|
||||
describe "when the editor view's text is changed", ->
|
||||
it "redraws the editor view when it is next shown", ->
|
||||
spyOn(Pane.prototype, "promptToSaveItem").andReturn false
|
||||
|
||||
atom.workspaceView = new WorkspaceView
|
||||
atom.workspaceView.openSync('sample.js')
|
||||
atom.workspaceView.attachToDom()
|
||||
|
||||
@@ -457,8 +457,6 @@ describe "WorkspaceView", ->
|
||||
|
||||
describe "window:toggle-invisibles event", ->
|
||||
it "shows/hides invisibles in all open and future editors", ->
|
||||
spyOn(Pane.prototype, "promptToSaveItem").andReturn 0
|
||||
|
||||
atom.workspaceView.height(200)
|
||||
atom.workspaceView.attachToDom()
|
||||
rightEditor = atom.workspaceView.getActiveView()
|
||||
|
||||
Reference in New Issue
Block a user