http = require 'http'
url = require 'url'
remote = require 'remote'
-formidable = require 'formidable'
+multiparty = require 'multiparty'
crashReporter = remote.require 'crash-reporter'
BrowserWindow = remote.require 'browser-window'
@timeout 120000
server = http.createServer (req, res) ->
server.close()
- form = new formidable.IncomingForm()
- process.throwDeprecation = false
+ form = new multiparty.Form()
form.parse req, (error, fields, files) ->
- process.throwDeprecation = true
assert.equal fields['prod'], 'Electron'
assert.equal fields['ver'], process.versions['electron']
assert.equal fields['process_type'], 'renderer'
assert.equal fields['_productName'], 'Zombies'
assert.equal fields['_companyName'], 'Umbrella Corporation'
assert.equal fields['_version'], require('remote').require('app').getVersion()
- assert files['upload_file_minidump']['name']?
res.end('abc-123-def')
done()
app.commandLine.appendSwitch('js-flags', '--expose_gc');
app.commandLine.appendSwitch('ignore-certificate-errors');
+app.commandLine.appendSwitch('disable-renderer-backgrounding');
// Accessing stdout in the main process will result in the process.stdout
// throwing UnknownSystemError in renderer process sometimes. This line makes