diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 6926e057f..4e990b914 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -4271,6 +4271,8 @@ describe "TextEditor", -> 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' @@ -4278,6 +4280,8 @@ describe "TextEditor", -> 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'}