👕
This commit is contained in:
parent
77bf4c8ebb
commit
9b776369e6
1 changed files with 3 additions and 4 deletions
|
@ -324,9 +324,8 @@ describe('webContents module', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('getOSProcessId()', function() {
|
describe('getOSProcessId()', function () {
|
||||||
it('returns a valid procress id', function() {
|
it('returns a valid procress id', function () {
|
||||||
|
|
||||||
// load URL otherwise getOSProcessId() returns 0
|
// load URL otherwise getOSProcessId() returns 0
|
||||||
w.loadURL('file://' + path.join(__dirname, 'fixtures', 'pages', 'focus-web-contents.html'))
|
w.loadURL('file://' + path.join(__dirname, 'fixtures', 'pages', 'focus-web-contents.html'))
|
||||||
|
|
||||||
|
@ -336,7 +335,7 @@ describe('webContents module', function () {
|
||||||
pid = specWebContents.getOSProcessId()
|
pid = specWebContents.getOSProcessId()
|
||||||
})
|
})
|
||||||
assert(typeof pid === 'number', 'is a number')
|
assert(typeof pid === 'number', 'is a number')
|
||||||
assert(pid > 0 , 'superior to 0')
|
assert(pid > 0, 'superior to 0')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue