Update scrollbar style spec for new library API

This commit is contained in:
Kevin Sawicki
2015-04-23 16:10:06 -07:00
parent 114c5fb918
commit 3bd0093eb3

View File

@@ -242,10 +242,15 @@ describe "WorkspaceView", ->
describe "the scrollbar visibility class", ->
it "has a class based on the style of the scrollbar", ->
style = 'legacy'
scrollbarStyle = require 'scrollbar-style'
scrollbarStyle.emitValue 'legacy'
spyOn(scrollbarStyle, 'getPreferredScrollbarStyle').andCallFake -> style
atom.workspaceView.element.observeScrollbarStyle()
expect(atom.workspaceView).toHaveClass 'scrollbars-visible-always'
scrollbarStyle.emitValue 'overlay'
style = 'overlay'
atom.workspaceView.element.observeScrollbarStyle()
expect(atom.workspaceView).toHaveClass 'scrollbars-visible-when-scrolling'
describe "editor font styling", ->