From 2803da2f8bf2d8b472cf861da22b0873cdbcbbd7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 24 Apr 2013 17:59:50 -0700 Subject: [PATCH] Replace offsUtilscreen with offscreen --- spec/app/editor-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index 63b7a00c8..2b54d9e7d 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -799,7 +799,7 @@ describe "Editor", -> setEditorHeightInLines(editor, 4) describe "if autoscroll is true", -> - it "centers the viewport on the selection if its vertical center is currently offsUtilscreen", -> + it "centers the viewport on the selection if its vertical center is currently offscreen", -> editor.setSelectedBufferRange([[2, 0], [4, 0]], autoscroll: true) expect(editor.scrollTop()).toBe 0 @@ -1210,7 +1210,7 @@ describe "Editor", -> expect(editor.renderedLines.find('.line:last').text()).toBe buffer.lineForRow(7) describe "when scrolling more than the editors height", -> - it "removes lines that are offsUtilscreen and not in range of the overdraw and builds lines that become visible", -> + it "removes lines that are offscreen and not in range of the overdraw and builds lines that become visible", -> editor.scrollTop(editor.scrollView.prop('scrollHeight') - editor.scrollView.height()) expect(editor.renderedLines.find('.line').length).toBe 8 expect(editor.renderedLines.find('.line:first').text()).toBe buffer.lineForRow(5)