mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Reset view registry in AtomEnvironment::reset
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user