Merge pull request #6874 from electron/tweak-flaky-web-contents-spec
Tweak flaky web contents spec
This commit is contained in:
commit
925fb27b1e
1 changed files with 3 additions and 4 deletions
|
@ -35,11 +35,10 @@ describe('webContents module', function () {
|
|||
return a.getId() - b.getId()
|
||||
})
|
||||
|
||||
assert.equal(all.length, 4)
|
||||
assert.ok(all.length >= 4)
|
||||
assert.equal(all[0].getType(), 'window')
|
||||
assert.equal(all[1].getType(), 'window')
|
||||
assert.equal(all[2].getType(), 'remote')
|
||||
assert.equal(all[3].getType(), 'webview')
|
||||
assert.equal(all[all.length - 2].getType(), 'remote')
|
||||
assert.equal(all[all.length - 1].getType(), 'webview')
|
||||
|
||||
done()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue