Support for navigator.languages (#12419)

This commit is contained in:
Nitish Sakhawalkar 2018-04-01 20:47:00 -07:00 committed by Cheng Zhao
parent 171230e45d
commit fbff355742
2 changed files with 12 additions and 2 deletions

View file

@ -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({