From: Cheng Zhao Date: Tue, 29 Apr 2014 03:54:12 +0000 (+0800) Subject: Discard usage of deprecated APIs. X-Git-Tag: v0.12.0~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=6df86afef8e706d84508c04c43b947deb364c347;p=electron.git Discard usage of deprecated APIs. --- diff --git a/spec/api-ipc-spec.coffee b/spec/api-ipc-spec.coffee index 1529e178..14181832 100644 --- a/spec/api-ipc-spec.coffee +++ b/spec/api-ipc-spec.coffee @@ -58,7 +58,7 @@ describe 'ipc module', -> describe 'ipc.sendSync', -> it 'can be replied by setting event.returnValue', -> - msg = ipc.sendChannelSync 'echo', 'test' + msg = ipc.sendSync 'echo', 'test' assert.equal msg, 'test' it 'does not crash when reply is not sent and browser is destroyed', (done) -> diff --git a/spec/fixtures/api/send-sync-message.html b/spec/fixtures/api/send-sync-message.html index 55d80ef0..d6fe83f9 100644 --- a/spec/fixtures/api/send-sync-message.html +++ b/spec/fixtures/api/send-sync-message.html @@ -2,7 +2,7 @@ diff --git a/spec/static/index.html b/spec/static/index.html index efd67178..d6f7aea7 100644 --- a/spec/static/index.html +++ b/spec/static/index.html @@ -37,11 +37,11 @@ return { log: function() { args = Array.prototype.slice.call(arguments); - ipc.sendChannel('console.log', args); + ipc.send('console.log', args); }, error: function() { args = Array.prototype.slice.call(arguments); - ipc.sendChannel('console.error', args); + ipc.send('console.error', args); }, } });