From c865e6123f06b2e0bf168975135e0dfda56823f2 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 7 Sep 2015 13:49:54 +0200 Subject: [PATCH] :green_heart: --- spec/text-editor-component-spec.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/text-editor-component-spec.coffee b/spec/text-editor-component-spec.coffee index 77503cd00..005dfdc21 100644 --- a/spec/text-editor-component-spec.coffee +++ b/spec/text-editor-component-spec.coffee @@ -452,6 +452,7 @@ describe "TextEditorComponent", -> it "keeps rebuilding lines when continuous reflow is on", -> atom.config.set("editor.continuousReflow", true) + wrapperNode.focus() nextAnimationFrame() oldLineNodes = componentNode.querySelectorAll(".line") @@ -467,6 +468,7 @@ describe "TextEditorComponent", -> oldLineNodes = newLineNodes atom.config.set("editor.continuousReflow", false) + wrapperNode.blur() nextAnimationFrame() newLineNodes = componentNode.querySelectorAll(".line") @@ -854,6 +856,7 @@ describe "TextEditorComponent", -> it "keeps rebuilding line numbers when continuous reflow is on", -> atom.config.set("editor.continuousReflow", true) + wrapperNode.focus() nextAnimationFrame() oldLineNodes = componentNode.querySelectorAll(".line-number") @@ -869,6 +872,7 @@ describe "TextEditorComponent", -> oldLineNodes = newLineNodes atom.config.set("editor.continuousReflow", false) + wrapperNode.blur() nextAnimationFrame() newLineNodes = componentNode.querySelectorAll(".line-number")