Merge pull request #7577 from thomsonreuters/net_module

net module
This commit is contained in:
Cheng Zhao 2016-10-31 10:31:56 +09:00 committed by GitHub
commit dfefa00a50
19 changed files with 3382 additions and 44 deletions

1352
spec/api-net-spec.js Normal file

File diff suppressed because it is too large Load diff

View file

@ -8,6 +8,7 @@ const ipcMain = electron.ipcMain
const dialog = electron.dialog
const BrowserWindow = electron.BrowserWindow
const protocol = electron.protocol
const v8 = require('v8')
const Coverage = require('electabul').Coverage
const fs = require('fs')
@ -24,6 +25,7 @@ var argv = require('yargs')
var window = null
process.port = 0 // will be used by crash-reporter spec.
v8.setFlagsFromString('--expose_gc')
app.commandLine.appendSwitch('js-flags', '--expose_gc')
app.commandLine.appendSwitch('ignore-certificate-errors')
app.commandLine.appendSwitch('disable-renderer-backgrounding')