fix: deprecate setLayoutZoomLevelLimits (#21296)

This commit is contained in:
Jeremy Apthorp 2019-12-02 13:27:03 -08:00 committed by GitHub
parent c7cbc2e6b1
commit 9526c5584e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 24 additions and 110 deletions

View file

@ -2,13 +2,6 @@ const { expect } = require('chai')
const { webFrame } = require('electron')
describe('webFrame module', function () {
it('supports setting the visual and layout zoom level limits', function () {
expect(() => {
webFrame.setVisualZoomLevelLimits(1, 50)
webFrame.setLayoutZoomLevelLimits(0, 25)
}).to.not.throw()
})
it('top is self for top frame', () => {
expect(webFrame.top.context).to.equal(webFrame.context)
})