Support for navigator.languages (#12419)
This commit is contained in:
parent
171230e45d
commit
fbff355742
2 changed files with 12 additions and 2 deletions
|
@ -132,6 +132,14 @@ describe('chromium feature', () => {
|
|||
})
|
||||
})
|
||||
|
||||
describe('navigator.languages', (done) => {
|
||||
it('should return the system locale only', () => {
|
||||
let appLocale = app.getLocale()
|
||||
assert.equal(navigator.languages.length, 1)
|
||||
assert.equal(navigator.languages[0], appLocale)
|
||||
})
|
||||
})
|
||||
|
||||
describe('navigator.serviceWorker', () => {
|
||||
it('should register for file scheme', (done) => {
|
||||
w = new BrowserWindow({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue