mirror of
https://github.com/atom/atom.git
synced 2026-01-15 01:48:15 -05:00
Update scrollbar style spec for new library API
This commit is contained in:
@@ -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", ->
|
||||
|
||||
Reference in New Issue
Block a user