From 83327eeabb9d9d3d87fbd97566d5ba18bd41a62e Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 3 Sep 2014 19:25:40 -0600 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20test=20for=20editor-created=20e?= =?UTF-8?q?vents=20when=20editor=20is=20copied?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can handle this through ::onDidAddTextEditor when the copy is added back to the pane. --- spec/workspace-spec.coffee | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/spec/workspace-spec.coffee b/spec/workspace-spec.coffee index 64ba379b2..79ea6c1de 100644 --- a/spec/workspace-spec.coffee +++ b/spec/workspace-spec.coffee @@ -311,20 +311,6 @@ describe "Workspace", -> editor.destroy() expect(workspace.getEditors()).toHaveLength 0 - describe "when an editor is copied", -> - it "emits an 'editor-created' event", -> - editor = null - handler = jasmine.createSpy('editorCreatedHandler') - workspace.on 'editor-created', handler - - waitsForPromise -> - workspace.open("a").then (o) -> editor = o - - runs -> - expect(handler.callCount).toBe 1 - editorCopy = editor.copy() - expect(handler.callCount).toBe 2 - it "stores the active grammars used by all the open editors", -> waitsForPromise -> atom.packages.activatePackage('language-javascript')