Merge pull request #6874 from electron/tweak-flaky-web-contents-spec

Tweak flaky web contents spec
This commit is contained in:
Kevin Sawicki 2016-08-16 16:42:01 -07:00 committed by GitHub
commit 925fb27b1e

View file

@ -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()
})