Remove unneeded unspy calls for setTimeout

This commit is contained in:
Kevin Sawicki
2013-03-28 23:12:53 -04:00
parent 5f9c643ae9
commit 1ccfbe22dc

View File

@@ -43,7 +43,6 @@ describe 'FuzzyFinder', ->
it "shows all relative file paths for the current project and selects the first", ->
rootView.attachToDom()
finderView.maxItems = Infinity
jasmine.unspy(window, "setTimeout")
rootView.trigger 'fuzzy-finder:toggle-file-finder'
paths = null
expect(finderView.find(".loading")).toBeVisible()
@@ -279,7 +278,6 @@ describe 'FuzzyFinder', ->
describe "cached file paths", ->
it "caches file paths after first time", ->
spyOn(LoadPathsTask.prototype, "start").andCallThrough()
jasmine.unspy(window, "setTimeout")
rootView.trigger 'fuzzy-finder:toggle-file-finder'
waitsFor ->
@@ -299,7 +297,6 @@ describe 'FuzzyFinder', ->
it "doesn't cache buffer paths", ->
spyOn(project, "getEditSessions").andCallThrough()
jasmine.unspy(window, "setTimeout")
rootView.trigger 'fuzzy-finder:toggle-buffer-finder'
waitsFor ->
@@ -319,7 +316,6 @@ describe 'FuzzyFinder', ->
it "busts the cache when the window gains focus", ->
spyOn(LoadPathsTask.prototype, "start").andCallThrough()
jasmine.unspy(window, "setTimeout")
rootView.trigger 'fuzzy-finder:toggle-file-finder'
waitsFor ->
@@ -336,7 +332,6 @@ describe 'FuzzyFinder', ->
describe "path ignoring", ->
it "ignores paths that match entries in config.fuzzyFinder.ignoredNames", ->
config.set("fuzzyFinder.ignoredNames", ["tree-view.js"])
jasmine.unspy(window, "setTimeout")
rootView.trigger 'fuzzy-finder:toggle-file-finder'
finderView.maxItems = Infinity
@@ -355,7 +350,6 @@ describe 'FuzzyFinder', ->
it "opens the fuzzy finder window when there are multiple matches", ->
editor.setText("sample")
jasmine.unspy(window, "setTimeout")
rootView.trigger 'fuzzy-finder:find-under-cursor'
waitsFor ->
@@ -367,7 +361,6 @@ describe 'FuzzyFinder', ->
it "opens a file directly when there is a single match", ->
editor.setText("sample.txt")
jasmine.unspy(window, "setTimeout")
rootView.trigger 'fuzzy-finder:find-under-cursor'
openedPath = null
@@ -385,7 +378,6 @@ describe 'FuzzyFinder', ->
editor.setText("moogoogaipan")
editor.setCursorBufferPosition([0,5])
jasmine.unspy(window, "setTimeout")
rootView.trigger 'fuzzy-finder:find-under-cursor'
waitsFor ->