else
@emit oldName, args...
-# Print deprecate warning.
+# Print deprecation warning.
deprecate.warn = (oldName, newName) ->
deprecate.log("#{oldName} is deprecated. Use #{newName} instead.")
else
console.warn "(electron) #{message}"
-
module.exports = deprecate
pathname: path.join fixtures, 'api', 'crash.html'
search: "?port=#{port}"
if process.platform is 'darwin'
- crashReporter.start {'submitURL': 'http://127.0.0.1:' + port}
+ crashReporter.start
+ companyName: 'Umbrella Corporation'
+ submitURL: "http://127.0.0.1:#{port}"
w.loadURL url
+
+ describe ".start(options)", ->
+ it 'requires that the companyName and submitURL option fields be specified', ->
+ assert.throws(-> crashReporter.start({companyName: 'Missing submitURL'}))
+ assert.throws(-> crashReporter.start({submitURL: 'Missing companyName'}))
const dialog = electron.dialog;
const BrowserWindow = electron.BrowserWindow;
+// Disable use of deprecated functions.
+process.throwDeprecation = true;
+
const path = require('path');
const url = require('url');