mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Destroy rootView/project on both window and atom globals
This commit is contained in:
@@ -82,12 +82,17 @@ afterEach ->
|
||||
keymap.bindingSets = bindingSetsToRestore
|
||||
keymap.bindingSetsByFirstKeystroke = bindingSetsByFirstKeystrokeToRestore
|
||||
atom.deactivatePackages()
|
||||
if rootView?
|
||||
rootView.remove?()
|
||||
window.rootView = null
|
||||
if project?
|
||||
project.destroy()
|
||||
window.project = null
|
||||
|
||||
window.rootView?.remove?()
|
||||
atom.rootView?.remove?() if atom.rootView isnt window.rootView
|
||||
window.rootView = null
|
||||
atom.rootView = null
|
||||
|
||||
window.project?.destroy?()
|
||||
atom.project?.destroy?() if atom.project isnt window.project
|
||||
window.project = null
|
||||
atom.project = null
|
||||
|
||||
$('#jasmine-content').empty() unless window.debugContent
|
||||
delete atom.windowState
|
||||
jasmine.unspy(atom, 'saveWindowState')
|
||||
|
||||
Reference in New Issue
Block a user