mirror of
https://github.com/atom/atom.git
synced 2026-02-11 15:14:59 -05:00
🔥 Remove deprecations from global atom module
This commit is contained in:
committed by
Nathan Sobo
parent
d2429840f6
commit
a2071a7093
@@ -1,3 +1,4 @@
|
||||
{Git} = require 'atom'
|
||||
{deprecate} = require 'grim'
|
||||
|
||||
deprecate('Fake task deprecation')
|
||||
module.exports = ->
|
||||
|
||||
@@ -52,7 +52,7 @@ describe "MenuManager", ->
|
||||
it "sends the current menu template and associated key bindings to the browser process", ->
|
||||
spyOn(menu, 'sendToBrowserProcess')
|
||||
menu.add [{label: "A", submenu: [{label: "B", command: "b"}]}]
|
||||
atom.keymap.add 'test', 'atom-workspace': 'ctrl-b': 'b'
|
||||
atom.keymaps.add 'test', 'atom-workspace': 'ctrl-b': 'b'
|
||||
menu.update()
|
||||
|
||||
waits 1
|
||||
@@ -64,8 +64,8 @@ describe "MenuManager", ->
|
||||
# more dynamic interaction between the currently focused element and the menu
|
||||
spyOn(menu, 'sendToBrowserProcess')
|
||||
menu.add [{label: "A", submenu: [{label: "B", command: "b"}]}]
|
||||
atom.keymap.add 'test', 'atom-workspace': 'ctrl-b': 'b'
|
||||
atom.keymap.add 'test', 'atom-text-editor': 'ctrl-b': 'unset!'
|
||||
atom.keymaps.add 'test', 'atom-workspace': 'ctrl-b': 'b'
|
||||
atom.keymaps.add 'test', 'atom-text-editor': 'ctrl-b': 'unset!'
|
||||
|
||||
waits 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user