Enable resizable spec on Linux
This commit is contained in:
parent
ee1f69062e
commit
73f6162f5c
1 changed files with 18 additions and 16 deletions
|
@ -527,6 +527,24 @@ describe('browser-window module', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('window states', function () {
|
||||
describe('resizable state', function() {
|
||||
it('can be changed with resizable option', function() {
|
||||
w.destroy();
|
||||
w = new BrowserWindow({show: false, resizable: false});
|
||||
assert.equal(w.isResizable(), false);
|
||||
});
|
||||
|
||||
it('can be changed with setResizable method', function() {
|
||||
assert.equal(w.isResizable(), true);
|
||||
w.setResizable(false);
|
||||
assert.equal(w.isResizable(), false);
|
||||
w.setResizable(true);
|
||||
assert.equal(w.isResizable(), true);
|
||||
});
|
||||
});
|
||||
})
|
||||
|
||||
describe('window states', function() {
|
||||
// Not implemented on Linux.
|
||||
if (process.platform == 'linux')
|
||||
|
@ -625,22 +643,6 @@ describe('browser-window module', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('resizable state', function() {
|
||||
it('can be changed with resizable option', function() {
|
||||
w.destroy();
|
||||
w = new BrowserWindow({show: false, resizable: false});
|
||||
assert.equal(w.isResizable(), false);
|
||||
});
|
||||
|
||||
it('can be changed with setResizable method', function() {
|
||||
assert.equal(w.isResizable(), true);
|
||||
w.setResizable(false);
|
||||
assert.equal(w.isResizable(), false);
|
||||
w.setResizable(true);
|
||||
assert.equal(w.isResizable(), true);
|
||||
});
|
||||
});
|
||||
|
||||
describe('hasShadow state', function() {
|
||||
// On Window there is no shadow by default and it can not be changed
|
||||
// dynamically.
|
||||
|
|
Loading…
Reference in a new issue