From d8a3848c1ac22ae04cb93139a55e638f2eabd0f3 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Tue, 12 Mar 2013 14:40:22 -0700 Subject: [PATCH] Round top position before comparing to height --- spec/app/pane-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/app/pane-spec.coffee b/spec/app/pane-spec.coffee index 3c62fc797..bbe85e207 100644 --- a/spec/app/pane-spec.coffee +++ b/spec/app/pane-spec.coffee @@ -550,7 +550,7 @@ describe "Pane", -> expect(row2.height()).toBe 2/3 * container.height() expect(pane2.outerWidth()).toBe column1.outerWidth() expect(pane2.outerHeight()).toBe 1/3 * container.height() - expect(pane2.position().top).toBe row2.height() + expect(Math.round(pane2.position().top)).toBe row2.height() expect(row2.children().length).toBe 2 column3 = row2.children(':eq(0)').view() @@ -568,7 +568,7 @@ describe "Pane", -> expect(pane4.outerWidth()).toBe column3.width() expect(pane4.outerHeight()).toBe 1/3 * container.height() expect(pane5.outerWidth()).toBe column3.width() - expect(pane5.position().top).toBe pane4.outerHeight() + expect(Math.round(pane5.position().top)).toBe pane4.outerHeight() expect(pane5.outerHeight()).toBe 1/3 * container.height() pane5.remove()