From c389bccfa098e80150f606dead4eba90d51203bf Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Mon, 24 Mar 2014 11:37:58 -0700 Subject: [PATCH] update editor view specs to account for lineHeight --- spec/editor-view-spec.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/editor-view-spec.coffee b/spec/editor-view-spec.coffee index 9ef516613..26c52dbb5 100644 --- a/spec/editor-view-spec.coffee +++ b/spec/editor-view-spec.coffee @@ -2937,14 +2937,14 @@ describe "EditorView", -> .editor { line-height: 2; } """ - expect(editorView.pixelPositionForScreenPosition([1, 3])).toEqual {top: 32, left: 30} - expect(editorView.getCursorView().position()).toEqual {top: 32, left: 30} + expect(editorView.pixelPositionForScreenPosition([1, 3])).toEqual {top: 20, left: 30} + expect(editorView.getCursorView().position()).toEqual {top: 20, left: 30} atom.themes.applyStylesheet 'char-width', """ .editor { letter-spacing: 2px; } """ - expect(editorView.pixelPositionForScreenPosition([1, 3])).toEqual {top: 32, left: 36} - expect(editorView.getCursorView().position()).toEqual {top: 32, left: 36} + expect(editorView.pixelPositionForScreenPosition([1, 3])).toEqual {top: 20, left: 36} + expect(editorView.getCursorView().position()).toEqual {top: 20, left: 36} describe "when the editor contains hard tabs", -> it "correctly calculates the the position left for a column", ->