From: Kevin Sawicki Date: Tue, 9 Feb 2016 18:18:01 +0000 (-0800) Subject: Add failing spec X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9c5a167dda969bdd8f332867d58477a75047658f;p=electron.git Add failing spec --- diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 69b895c3..d91e9d41 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -658,4 +658,12 @@ describe('browser-window module', function() { }); }); }); + + describe('window.webContents.send(channel, args...)', function() { + it('throws an error when the channel is missing', function() { + assert.throws(function () { + w.webContents.send(); + }, 'channel must be specified'); + }); + }); });