Remove unneeded calls to rootView.deactivate

This commit is contained in:
Corey Johnson & Nathan Sobo 2013-02-19 17:28:35 -07:00
parent 9e8831f710
commit 47aa74133f
10 changed files with 1 additions and 30 deletions

View File

@ -12,9 +12,6 @@ describe "bracket matching", ->
editSession = editor.activeEditSession
buffer = editSession.buffer
afterEach ->
rootView.deactivate()
describe "matching bracket highlighting", ->
describe "when the cursor is before a starting pair", ->
it "highlights the starting pair and ending pair", ->

View File

@ -11,9 +11,6 @@ describe "CommandLogger", ->
commandLogger.eventLog = {}
editor = rootView.getActiveEditor()
afterEach ->
rootView.deactivate()
describe "when a command is triggered", ->
it "records the number of times the command is triggered", ->
expect(commandLogger.eventLog['core:backspace']).toBeUndefined()

View File

@ -16,9 +16,6 @@ describe "CommandPanel", ->
commandPanel.history = []
commandPanel.historyIndex = 0
afterEach ->
rootView.deactivate()
describe "serialization", ->
it "preserves the command panel's history across reloads", ->
rootView.attachToDom()

View File

@ -26,9 +26,6 @@ describe "EditorStats", ->
editorStats = window.loadPackage('editor-stats').packageMain.stats
afterEach ->
rootView.deactivate()
describe "when a keyup event is triggered", ->
it "records the number of times a keyup is triggered", ->
simulateKeyUp('a')

View File

@ -15,9 +15,6 @@ describe 'FuzzyFinder', ->
rootView.enableKeymap()
finderView = window.loadPackage("fuzzy-finder").packageMain.createView()
afterEach ->
rootView.deactivate()
describe "file-finder behavior", ->
describe "toggling", ->
describe "when the root view's project has a path", ->

View File

@ -11,9 +11,6 @@ describe "Gists package", ->
editor = rootView.getActiveEditor()
spyOn($, 'ajax')
afterEach ->
rootView.deactivate()
describe "when gist:create is triggered on an editor", ->
describe "when the editor has no selection", ->

View File

@ -10,9 +10,6 @@ describe "MarkdownPreview", ->
window.loadPackage("markdown-preview")
spyOn(MarkdownPreview.prototype, 'loadHtml')
afterEach ->
rootView.deactivate()
describe "markdown-preview:toggle event", ->
it "toggles on/off a preview for a .md file", ->
rootView.open('file.md')

View File

@ -9,9 +9,6 @@ describe 'Package Generator', ->
rootView.open('sample.js')
window.loadPackage("package-generator")
afterEach ->
rootView.deactivate()
describe "when package-generator:generate is triggered", ->
it "displays a miniEditor", ->
rootView.trigger("package-generator:generate")

View File

@ -28,8 +28,7 @@ describe "Snippets extension", ->
rootView.enableKeymap()
afterEach ->
rootView.deactivate()
delete window.snippets
window.snippets = null
describe "when 'tab' is triggered on the editor", ->
beforeEach ->

View File

@ -21,9 +21,6 @@ describe "TreeView", ->
expect(treeView.root.directory.subscriptionCount()).toBeGreaterThan 0
afterEach ->
rootView.deactivate()
describe ".initialize(project)", ->
it "renders the root of the project and its contents alphabetically with subdirectories first in a collapsed state", ->
expect(treeView.root.find('> .header .disclosure-arrow')).not.toHaveClass('expanded')
@ -616,7 +613,6 @@ describe "TreeView", ->
fileView = treeView.find('.file:contains(test-file.txt)').view()
afterEach ->
rootView.deactivate()
fs.remove(rootDirPath) if fs.exists(rootDirPath)
describe "tree-view:add", ->