Add initial spec for remote modules
This commit is contained in:
parent
e8a79cb88d
commit
ca8983bf6c
1 changed files with 9 additions and 0 deletions
|
@ -154,6 +154,15 @@ describe('ipc module', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('remote modules', function () {
|
||||||
|
it('includes browser process modules as properties', function () {
|
||||||
|
assert.equal(typeof remote.app.getPath, 'function')
|
||||||
|
assert.equal(typeof remote.webContents.getFocusedWebContents, 'function')
|
||||||
|
assert.equal(typeof remote.clipboard.readText, 'function')
|
||||||
|
assert.equal(typeof remote.shell.openExternal, 'function')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe('remote object in renderer', function () {
|
describe('remote object in renderer', function () {
|
||||||
it('can change its properties', function () {
|
it('can change its properties', function () {
|
||||||
var property = remote.require(path.join(fixtures, 'module', 'property.js'))
|
var property = remote.require(path.join(fixtures, 'module', 'property.js'))
|
||||||
|
|
Loading…
Reference in a new issue