From fab4d4e4e5efa378e835e7728834222b58589bca Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 18 Sep 2012 17:31:47 -0700 Subject: [PATCH] Fix TreeView spec that was failing in #MOLO --- spec/extensions/tree-view-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/extensions/tree-view-spec.coffee b/spec/extensions/tree-view-spec.coffee index 0d00e0b06..c88220ba0 100644 --- a/spec/extensions/tree-view-spec.coffee +++ b/spec/extensions/tree-view-spec.coffee @@ -112,11 +112,11 @@ describe "TreeView", -> expect(newTreeView).toMatchSelector ':focus' it "restores the scroll top when toggled", -> + rootView.height(100) rootView.attachToDom() expect(treeView).toBeVisible() treeView.focus() - treeView.root.height(document.body.scrollHeight * 100) treeView.scrollTop(10) expect(treeView.scrollTop()).toBe(10)