From fff2a54258f7796ebec19fe1733b231ff89bfd2c Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 9 Feb 2016 20:27:50 -0500 Subject: [PATCH] :white_check_mark: Specs for variable tabLength For #9198 --- spec/text-editor-spec.coffee | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 426eb3129..6959d4da5 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -139,6 +139,15 @@ describe "TextEditor", -> expect(editor2.getSoftTabs()).toBe true expect(editor2.getEncoding()).toBe 'macroman' + atom.config.set('editor.tabLength', -1) + expect(editor2.getTabLength()).toBe 1 + atom.config.set('editor.tabLength', 2) + expect(editor2.getTabLength()).toBe 2 + atom.config.set('editor.tabLength', 17) + expect(editor2.getTabLength()).toBe 17 + atom.config.set('editor.tabLength', 128) + expect(editor2.getTabLength()).toBe 128 + it "uses scoped `core.fileEncoding` values", -> editor1 = null editor2 = null