Reset view registry in AtomEnvironment::reset

This commit is contained in:
Nathan Sobo
2015-10-06 10:55:12 -06:00
parent 097a035dc4
commit b7d6dd5e8c
3 changed files with 13 additions and 5 deletions

View File

@@ -22,6 +22,7 @@ describe "TextEditorComponent", ->
nextAnimationFrame = noAnimationFrame
spyOn(window, 'requestAnimationFrame').andCallFake (fn) ->
debugger if global.debug
nextAnimationFrame = ->
nextAnimationFrame = noAnimationFrame
fn()
@@ -54,6 +55,10 @@ describe "TextEditorComponent", ->
component.measureDimensions()
nextAnimationFrame()
# Mutating the DOM in the previous frame causes a document poll; clear it here
waits 0
runs -> nextAnimationFrame()
afterEach ->
contentNode.style.width = ''