Don't simulate DOM attachment. Pixel translation needs the real thing.

This commit is contained in:
Nathan Sobo
2013-02-09 16:42:10 -07:00
parent 405a918280
commit 13db9169e9

View File

@@ -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", ->