Add failing spec for window size after restore

This commit is contained in:
Samuel Attard 2016-11-22 15:49:47 +11:00
parent 71f94c7a3a
commit 67f33cdb60
No known key found for this signature in database
GPG key ID: 273DC1869D8F13EF

View file

@ -1754,6 +1754,25 @@ describe('browser-window module', function () {
})
})
})
describe.only('minWidth', function () {
beforeEach(function () {
if (w != null) w.destroy()
w = new BrowserWindow({
minWidth: 800,
width: 800
})
})
it('should persist when restoring the window', function (done) {
w.minimize();
setTimeout(() => {
w.restore();
assert.equal(w.getSize()[0], 800);
done();
}, 200);
})
})
})
const assertBoundsEqual = (actual, expect) => {