From 339eeac0d89c2cf9167e3004ac5167aee67261a7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 11 Dec 2012 15:58:59 -0800 Subject: [PATCH] Remove unneeded spyOn calls --- spec/app/editor-spec.coffee | 3 --- 1 file changed, 3 deletions(-) diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index 34b78d86f..0c7459a70 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -1396,7 +1396,6 @@ describe "Editor", -> describe "when lines are added", -> beforeEach -> editor.attachToDom(heightInLines: 5) - spyOn(editor, "scrollToPixelPosition") describe "when the change precedes the first rendered row", -> it "inserts and removes rendered lines to account for upstream change", -> @@ -1448,7 +1447,6 @@ describe "Editor", -> describe "when lines are removed", -> beforeEach -> editor.attachToDom(heightInLines: 5) - spyOn(editor, "scrollToPixelPosition") it "sets the rendered screen line's width to either the max line length or the scollView's width (whichever is greater)", -> maxLineLength = editor.maxScreenLineLength() @@ -1614,7 +1612,6 @@ describe "Editor", -> describe "when lines are inserted", -> it "re-renders the correct line number range in the gutter", -> - spyOn(editor, 'scrollToPixelPosition') editor.scrollTop(3 * editor.lineHeight) expect(editor.gutter.find('.line-number:first').text()).toBe '2' expect(editor.gutter.find('.line-number:last').text()).toBe '11'