Fix tree-view specs

This commit is contained in:
Nathan Sobo
2013-04-15 19:49:03 -06:00
parent cd9f6d4c62
commit 8c648e9226

View File

@@ -456,7 +456,7 @@ describe "TreeView", ->
expect(treeView.scrollTop()).toBe 0
treeView.trigger 'core:move-to-bottom'
expect(treeView.scrollBottom()).toBe treeView.find(".tree-view").prop('scrollHeight')
expect(treeView.scrollBottom()).toBe treeView.root.outerHeight()
it "selects the last entry", ->
expect(treeView.root).toHaveClass 'selected'
@@ -501,7 +501,7 @@ describe "TreeView", ->
entryCount = treeView.find(".entry").length
_.times entryCount, -> treeView.moveDown()
expect(treeView.scrollBottom()).toBe treeView.find(".tree-view").prop('scrollHeight')
expect(treeView.scrollBottom()).toBe treeView.root.outerHeight()
_.times entryCount, -> treeView.moveUp()
expect(treeView.scrollTop()).toBe 0