refactor: make accessibilitySupportEnabled a property on app (#17362)
* refactor: make accessibilitySupport a prop on app * fix docs * update spec
This commit is contained in:
parent
11699d8611
commit
9c3cb55ef2
8 changed files with 56 additions and 36 deletions
|
@ -634,9 +634,15 @@ describe('app module', () => {
|
|||
})
|
||||
})
|
||||
|
||||
describe('isAccessibilitySupportEnabled API', () => {
|
||||
describe('accessibilitySupportEnabled property', () => {
|
||||
if (process.platform === 'linux') return
|
||||
|
||||
it('returns whether the Chrome has accessibility APIs enabled', () => {
|
||||
expect(app.isAccessibilitySupportEnabled()).to.be.a('boolean')
|
||||
expect(app.accessibilitySupportEnabled).to.be.a('boolean')
|
||||
|
||||
//TODO(codebytere): remove when propertyification is complete
|
||||
expect(app.isAccessibilitySupportEnabled).to.be.a('function')
|
||||
expect(app.setAccessibilitySupportEnabled).to.be.a('function')
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue