mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
🔥 Remove theorist and TextEditor deprecations
This commit is contained in:
@@ -4979,18 +4979,6 @@ describe "TextEditor", ->
|
||||
beforeEach ->
|
||||
marker = editor.markBufferRange([[1, 0], [1, 0]])
|
||||
|
||||
it "casts 'gutter' type to 'line-number' unless a gutter name is specified.", ->
|
||||
jasmine.snapshotDeprecations()
|
||||
|
||||
lineNumberDecoration = editor.decorateMarker(marker, {type: 'gutter'})
|
||||
customGutterDecoration = editor.decorateMarker(marker, {type: 'gutter', gutterName: 'custom'})
|
||||
expect(lineNumberDecoration.getProperties().type).toBe 'line-number'
|
||||
expect(lineNumberDecoration.getProperties().gutterName).toBe 'line-number'
|
||||
expect(customGutterDecoration.getProperties().type).toBe 'gutter'
|
||||
expect(customGutterDecoration.getProperties().gutterName).toBe 'custom'
|
||||
|
||||
jasmine.restoreDeprecationsSnapshot()
|
||||
|
||||
it 'reflects an added decoration when one of its custom gutters is decorated.', ->
|
||||
gutter = editor.addGutter {'name': 'custom-gutter'}
|
||||
decoration = gutter.decorateMarker marker, {class: 'custom-class'}
|
||||
|
||||
Reference in New Issue
Block a user