From b7218e5aa4fc46068f58b83cd93e2e733c7b3f59 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 11 May 2017 21:06:15 -0600 Subject: [PATCH] Fix atom.setSize spec when window is full screen --- spec/atom-environment-spec.coffee | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/atom-environment-spec.coffee b/spec/atom-environment-spec.coffee index b318673a0..dc2ab300a 100644 --- a/spec/atom-environment-spec.coffee +++ b/spec/atom-environment-spec.coffee @@ -29,10 +29,12 @@ describe "AtomEnvironment", -> atom.setSize(originalSize.width, originalSize.height) it 'sets the size of the window, and can retrieve the size just set', -> - newWidth = originalSize.width + 12 - newHeight = originalSize.height + 23 - atom.setSize(newWidth, newHeight) - expect(atom.getSize()).toEqual width: newWidth, height: newHeight + newWidth = originalSize.width - 12 + newHeight = originalSize.height - 23 + waitsForPromise -> + atom.setSize(newWidth, newHeight) + runs -> + expect(atom.getSize()).toEqual width: newWidth, height: newHeight describe ".isReleasedVersion()", -> it "returns false if the version is a SHA and true otherwise", ->