From 68fe7026a828b55e4fda89e505edfcdfd322df30 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Sat, 19 Sep 2015 15:46:39 -0600 Subject: [PATCH] Disable deprecated APIs in specs --- spec/display-buffer-spec.coffee | 3 ++- static/index.js | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/display-buffer-spec.coffee b/spec/display-buffer-spec.coffee index c7acbfa26..3d64f7be6 100644 --- a/spec/display-buffer-spec.coffee +++ b/spec/display-buffer-spec.coffee @@ -240,7 +240,8 @@ describe "DisplayBuffer", -> describe "when a newline is inserted, deleted, and re-inserted at the end of a wrapped line (regression)", -> it "correctly renders the original wrapped line", -> buffer = atom.project.buildBufferSync(null, '') - displayBuffer = new DisplayBuffer({buffer, tabLength, editorWidthInChars: 30, softWrapped: true}) + displayBuffer = new DisplayBuffer({buffer, tabLength, editorWidthInChars: 30}) + displayBuffer.setSoftWrapped(true) buffer.insert([0, 0], "the quick brown fox jumps over the lazy dog.") buffer.insert([0, Infinity], '\n') diff --git a/static/index.js b/static/index.js index 914290321..d3073a7d6 100644 --- a/static/index.js +++ b/static/index.js @@ -64,9 +64,6 @@ ModuleCache.register(loadSettings) ModuleCache.add(loadSettings.resourcePath) - // Only include deprecated APIs when running core spec - require('grim').includeDeprecatedAPIs = isRunningCoreSpecs(loadSettings) - // Start the crash reporter before anything else. require('crash-reporter').start({ productName: 'Atom',