From 786cd82e26bde15fcf3c45fe228c036549406ab0 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 8 Sep 2015 16:28:19 +0200 Subject: [PATCH] :green_heart: --- spec/text-editor-component-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/text-editor-component-spec.coffee b/spec/text-editor-component-spec.coffee index 2e914048e..58e3b1db4 100644 --- a/spec/text-editor-component-spec.coffee +++ b/spec/text-editor-component-spec.coffee @@ -294,7 +294,7 @@ describe "TextEditorComponent", -> editorFullWidth = editor.getScrollWidth() + editor.getVerticalScrollbarWidth() for lineNode in lineNodes - expect(lineNode.style.width).toBe editorFullWidth + 'px' + expect(lineNode.getBoundingClientRect().width).toBe(editorFullWidth) componentNode.style.width = gutterWidth + editor.getScrollWidth() + 100 + 'px' component.measureDimensions() @@ -302,7 +302,7 @@ describe "TextEditorComponent", -> scrollViewWidth = scrollViewNode.offsetWidth for lineNode in lineNodes - expect(lineNode.style.width).toBe scrollViewWidth + 'px' + expect(lineNode.getBoundingClientRect().width).toBe(scrollViewWidth) it "renders an nbsp on empty lines when no line-ending character is defined", -> atom.config.set("editor.showInvisibles", false)