From 13db9169e90e168e816d25aabf72ecc621bfbc0e Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Sat, 9 Feb 2013 16:42:10 -0700 Subject: [PATCH] Don't simulate DOM attachment. Pixel translation needs the real thing. --- spec/app/editor-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index 5a6e4df1f..c5c5ec6f2 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -482,13 +482,13 @@ describe "Editor", -> openHandler = jasmine.createSpy('openHandler') editor.on 'editor:attached', openHandler - editor.simulateDomAttachment() + editor.attachToDom() expect(openHandler).toHaveBeenCalled() [event, eventEditor] = openHandler.argsForCall[0] expect(eventEditor).toBe editor openHandler.reset() - editor.simulateDomAttachment() + editor.attachToDom() expect(openHandler).not.toHaveBeenCalled() describe "editor-path-changed event", ->