spec: Do not test window positions

They were too flaky.
This commit is contained in:
Cheng Zhao 2017-08-29 14:23:39 +09:00
parent 4febbec102
commit f0f17fffd8

View file

@ -1017,8 +1017,6 @@ describe('BrowserWindow module', function () {
} }
assert.equal(url, expectedUrl) assert.equal(url, expectedUrl)
assert.equal(frameName, 'popup!') assert.equal(frameName, 'popup!')
assert.equal(options.x, 50)
assert.equal(options.y, 60)
assert.equal(options.width, 500) assert.equal(options.width, 500)
assert.equal(options.height, 600) assert.equal(options.height, 600)
ipcMain.once('answer', function (event, html) { ipcMain.once('answer', function (event, html) {
@ -1044,8 +1042,6 @@ describe('BrowserWindow module', function () {
w.loadURL(pageUrl) w.loadURL(pageUrl)
w.webContents.once('new-window', (e, url, frameName, disposition, options) => { w.webContents.once('new-window', (e, url, frameName, disposition, options) => {
assert.equal(url, 'http://www.google.com/#q=electron') assert.equal(url, 'http://www.google.com/#q=electron')
assert.equal(options.x, 55)
assert.equal(options.y, 65)
assert.equal(options.width, 505) assert.equal(options.width, 505)
assert.equal(options.height, 605) assert.equal(options.height, 605)
ipcMain.once('child-loaded', function (event, openerIsNull, html) { ipcMain.once('child-loaded', function (event, openerIsNull, html) {