Add initial spec for zoom level limits
This commit is contained in:
parent
c4b68d88e9
commit
a7aed98d59
1 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,7 @@ const {BrowserWindow, protocol, ipcMain} = remote
|
||||||
|
|
||||||
describe('webFrame module', function () {
|
describe('webFrame module', function () {
|
||||||
var fixtures = path.resolve(__dirname, 'fixtures')
|
var fixtures = path.resolve(__dirname, 'fixtures')
|
||||||
|
|
||||||
describe('webFrame.registerURLSchemeAsPrivileged', function () {
|
describe('webFrame.registerURLSchemeAsPrivileged', function () {
|
||||||
it('supports fetch api by default', function (done) {
|
it('supports fetch api by default', function (done) {
|
||||||
webFrame.registerURLSchemeAsPrivileged('file')
|
webFrame.registerURLSchemeAsPrivileged('file')
|
||||||
|
@ -126,4 +127,12 @@ describe('webFrame module', function () {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('supports setting the visual and layout zoom level limits', function () {
|
||||||
|
assert.doesNotThrow(function () {
|
||||||
|
webFrame.setZoomLevelLimits(1, 100)
|
||||||
|
webFrame.setVisualZoomLevelLimits(1, 50)
|
||||||
|
webFrame.setLayoutZoomLevelLimits(0, 25)
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue