mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-13 08:44:12 +03:00
Remove unneeded calls to rootView.deactivate
This commit is contained in:
parent
9e8831f710
commit
47aa74133f
@ -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", ->
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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')
|
||||
|
@ -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", ->
|
||||
|
@ -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", ->
|
||||
|
@ -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')
|
||||
|
@ -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")
|
||||
|
@ -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 ->
|
||||
|
@ -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", ->
|
||||
|
Loading…
Reference in New Issue
Block a user