mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Don't simulate DOM attachment. Pixel translation needs the real thing.
This commit is contained in:
@@ -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", ->
|
||||
|
||||
Reference in New Issue
Block a user