mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
💄
This commit is contained in:
@@ -717,11 +717,10 @@ describe "RootView", ->
|
||||
|
||||
describe 'setInvisiblesMap', ->
|
||||
it 'sets the invisibles map to the supplied hash', ->
|
||||
rootView.setInvisiblesMap {
|
||||
eol: "¬",
|
||||
space: "•",
|
||||
rootView.setInvisiblesMap
|
||||
eol: "¬"
|
||||
space: "•"
|
||||
tab: "▸"
|
||||
}
|
||||
|
||||
it 'updates the display of all edit sessions with the new map', ->
|
||||
rootView.height(200)
|
||||
@@ -730,11 +729,11 @@ describe "RootView", ->
|
||||
rightEditor.setText(" \t ")
|
||||
leftEditor = rightEditor.splitLeft()
|
||||
|
||||
rootView.setInvisiblesMap {
|
||||
eol: ";",
|
||||
space: "_",
|
||||
rootView.setInvisiblesMap
|
||||
eol: ";"
|
||||
space: "_"
|
||||
tab: "tab"
|
||||
}
|
||||
|
||||
rootView.trigger "window:toggle-invisibles"
|
||||
expect(rightEditor.find(".line:first").text()).toBe "_tab _;"
|
||||
expect(leftEditor.find(".line:first").text()).toBe "_tab _;"
|
||||
|
||||
@@ -31,11 +31,10 @@ class RootView extends View
|
||||
extensionStates: null
|
||||
fontSize: 20
|
||||
showInvisibles: false
|
||||
invisiblesMap: {
|
||||
eol: "¬",
|
||||
space: "•",
|
||||
invisiblesMap:
|
||||
eol: "¬"
|
||||
space: "•"
|
||||
tab: "▸"
|
||||
}
|
||||
|
||||
initialize: (pathToOpen, { @extensionStates, suppressOpen } = {}) ->
|
||||
window.rootView = this
|
||||
|
||||
Reference in New Issue
Block a user