diff --git a/spec/editor-component-spec.coffee b/spec/editor-component-spec.coffee index 15b08af33..02d19e3cb 100644 --- a/spec/editor-component-spec.coffee +++ b/spec/editor-component-spec.coffee @@ -9,6 +9,9 @@ describe "EditorComponent", -> atom.packages.activatePackage('language-javascript') runs -> + spyOn(window, "setInterval").andCallFake window.fakeSetInterval + spyOn(window, "clearInterval").andCallFake window.fakeClearInterval + delayAnimationFrames = false nextAnimationFrame = null spyOn(window, 'requestAnimationFrame').andCallFake (fn) -> diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index 7337f3ca3..4dd834090 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -93,8 +93,6 @@ beforeEach -> spyOn(WorkspaceView.prototype, 'setTitle').andCallFake (@title) -> spyOn(window, "setTimeout").andCallFake window.fakeSetTimeout spyOn(window, "clearTimeout").andCallFake window.fakeClearTimeout - spyOn(window, "setInterval").andCallFake window.fakeSetInterval - spyOn(window, "clearInterval").andCallFake window.fakeClearInterval spyOn(pathwatcher.File.prototype, "detectResurrectionAfterDelay").andCallFake -> @detectResurrection() spyOn(Editor.prototype, "shouldPromptToSave").andReturn false