From 4a3dbedb71f4f997f1496b06ad1e7a739e229e4e Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 9 Nov 2012 13:28:51 -0700 Subject: [PATCH] Fix spec to allow for 20 extra pixels to right of the lines --- spec/app/editor-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index 76b0cb33c..589e67dd7 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -1382,7 +1382,7 @@ fdescribe "Editor", -> maxLineLength = editor.maxScreenLineLength() setEditorWidthInChars(editor, maxLineLength) widthBefore = editor.renderedLines.width() - expect(widthBefore).toBe editor.scrollView.width() + expect(widthBefore).toBe editor.scrollView.width() + 20 buffer.change([[12,0], [12,0]], [1..maxLineLength*2].join('')) expect(editor.renderedLines.width()).toBeGreaterThan widthBefore