Improve deprecated message on webPreferences options
This commit is contained in:
parent
c31882749d
commit
737ffd8d7c
2 changed files with 2 additions and 2 deletions
|
@ -776,7 +776,7 @@ describe('browser-window module', function() {
|
|||
it('throws a deprecation error for option keys that should be set on webPreferences', function() {
|
||||
assert.throws(function () {
|
||||
new BrowserWindow({zoomFactor: 1});
|
||||
}, 'Setting zoomFactor on options is deprecated. Set it on options.webPreferences instead.');
|
||||
}, 'options.zoomFactor is deprecated. Use options.webPreferences.zoomFactor instead.');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue