mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
In TextEditorElement spec, style scrollbar within shadow root
This commit is contained in:
@@ -133,16 +133,16 @@ describe "TextEditorElement", ->
|
||||
it "re-renders the scrollbar", ->
|
||||
jasmineContent.appendChild(element)
|
||||
|
||||
atom.styles.addStyleSheet """
|
||||
atom.styles.addStyleSheet("""
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
"""
|
||||
""", context: 'atom-text-editor')
|
||||
|
||||
initialThemeLoadComplete = true
|
||||
themeReloadCallback()
|
||||
|
||||
verticalScrollbarNode = element.querySelector(".vertical-scrollbar")
|
||||
verticalScrollbarNode = element.shadowRoot.querySelector(".vertical-scrollbar")
|
||||
scrollbarWidth = verticalScrollbarNode.offsetWidth - verticalScrollbarNode.clientWidth
|
||||
expect(scrollbarWidth).toEqual(8)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user