mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Throw error when no animation frame was requested
This commit is contained in:
committed by
Ben Ogle
parent
2edcc517b1
commit
8295019891
@@ -19,7 +19,7 @@ describe "EditorComponent", ->
|
||||
spyOn(window, "clearInterval").andCallFake window.fakeClearInterval
|
||||
|
||||
delayAnimationFrames = false
|
||||
nextAnimationFrame = null
|
||||
nextAnimationFrame = -> throw new Error('No animation frame requested')
|
||||
spyOn(window, 'requestAnimationFrame').andCallFake (fn) ->
|
||||
if delayAnimationFrames
|
||||
nextAnimationFrame = fn
|
||||
|
||||
Reference in New Issue
Block a user