mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Fix TreeView spec that was failing in #MOLO
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user