feat: Upgrade to Chromium 71.0.3578.98 (#15966)

This commit is contained in:
Robo 2019-01-12 06:30:43 +05:30 committed by Jeremy Apthorp
parent 92ddfd0d4c
commit 52fe92d02e
204 changed files with 2291 additions and 1760 deletions

View file

@ -13,9 +13,9 @@ describe('modules support', () => {
const fixtures = path.join(__dirname, 'fixtures')
describe('third-party module', () => {
(nativeModulesEnabled ? describe : describe.skip)('runas', () => {
(nativeModulesEnabled ? describe : describe.skip)('echo', () => {
it('can be required in renderer', () => {
require('runas')
require('echo')
})
it('can be required in node binary', function (done) {
@ -24,8 +24,8 @@ describe('modules support', () => {
done()
}
const runas = path.join(fixtures, 'module', 'runas.js')
const child = require('child_process').fork(runas)
const echo = path.join(fixtures, 'module', 'echo.js')
const child = require('child_process').fork(echo)
child.on('message', (msg) => {
assert.strictEqual(msg, 'ok')
done()
@ -38,9 +38,9 @@ describe('modules support', () => {
const testExecPath = path.join(path.dirname(execPath), 'test.exe')
fs.copyFileSync(execPath, testExecPath)
try {
const runasFixture = path.join(fixtures, 'module', 'runas-renamed.js')
assert.ok(fs.existsSync(runasFixture))
const child = require('child_process').spawnSync(testExecPath, [runasFixture])
const fixture = path.join(fixtures, 'module', 'echo-renamed.js')
assert.ok(fs.existsSync(fixture))
const child = require('child_process').spawnSync(testExecPath, [fixture])
assert.strictEqual(child.status, 0)
} finally {
fs.unlinkSync(testExecPath)