build: add enable_remote_module build flag (#19821)
This commit is contained in:
parent
8bf74164e2
commit
11cd0db86b
32 changed files with 585 additions and 497 deletions
|
@ -5,11 +5,14 @@ const dirtyChai = require('dirty-chai')
|
|||
const path = require('path')
|
||||
const { closeWindow } = require('./window-helpers')
|
||||
const { resolveGetters } = require('./expect-helpers')
|
||||
const { ifdescribe } = require('./spec-helpers')
|
||||
|
||||
const { remote, ipcRenderer } = require('electron')
|
||||
const { ipcMain, BrowserWindow } = remote
|
||||
const { expect } = chai
|
||||
|
||||
const features = process.electronBinding('features')
|
||||
|
||||
chai.use(dirtyChai)
|
||||
|
||||
const comparePaths = (path1, path2) => {
|
||||
|
@ -20,7 +23,7 @@ const comparePaths = (path1, path2) => {
|
|||
expect(path1).to.equal(path2)
|
||||
}
|
||||
|
||||
describe('remote module', () => {
|
||||
ifdescribe(features.isRemoteModuleEnabled())('remote module', () => {
|
||||
const fixtures = path.join(__dirname, 'fixtures')
|
||||
|
||||
describe('remote.require', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue