Add failing spec for window size after restore
This commit is contained in:
parent
71f94c7a3a
commit
67f33cdb60
1 changed files with 19 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue