mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Wait for next animation frame before measuring when stylesheets change
Fixes #4479
This commit is contained in:
@@ -1908,7 +1908,8 @@ describe "TextEditorComponent", ->
|
||||
}
|
||||
""", context: 'atom-text-editor'
|
||||
|
||||
nextAnimationFrame()
|
||||
nextAnimationFrame() # handle stylesheet change event
|
||||
nextAnimationFrame() # perform requested update
|
||||
|
||||
scrollbarCornerNode = componentNode.querySelector('.scrollbar-corner')
|
||||
expect(verticalScrollbarNode.offsetWidth).toBe 8
|
||||
|
||||
Reference in New Issue
Block a user