mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Fix specs on macOS when "Show scroll bars" option isn't "always"
This commit is contained in:
@@ -27,6 +27,11 @@ document.registerElement('text-editor-component-test-element', {
|
||||
describe('TextEditorComponent', () => {
|
||||
beforeEach(() => {
|
||||
jasmine.useRealClock()
|
||||
|
||||
// Force scrollbars to be visible regardless of local system configuration
|
||||
const scrollbarStyle = document.createElement('style')
|
||||
scrollbarStyle.textContent = '::-webkit-scrollbar { -webkit-appearance: none }'
|
||||
jasmine.attachToDOM(scrollbarStyle)
|
||||
})
|
||||
|
||||
describe('rendering', () => {
|
||||
|
||||
Reference in New Issue
Block a user