From 6df86afef8e706d84508c04c43b947deb364c347 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 29 Apr 2014 11:54:12 +0800 Subject: [PATCH] Discard usage of deprecated APIs. --- spec/api-ipc-spec.coffee | 2 +- spec/fixtures/api/send-sync-message.html | 2 +- spec/static/index.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/api-ipc-spec.coffee b/spec/api-ipc-spec.coffee index 1529e178f50..14181832055 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 55d80ef092c..d6fe83f907e 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 efd671788a1..d6f7aea7d86 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); }, } });