Fix TreeView spec that was failing in #MOLO

This commit is contained in:
Corey Johnson
2012-09-18 17:31:47 -07:00
parent 4b8b4ef91c
commit fab4d4e4e5

View File

@@ -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)