browser: allow enumeration of media device labels
This commit is contained in:
parent
a21e095a59
commit
fce641aab6
3 changed files with 25 additions and 0 deletions
|
@ -87,6 +87,20 @@ describe('chromium feature', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('navigator.mediaDevices', function() {
|
||||
if (process.env.TRAVIS === 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
it('can return labels of enumerated devices', function(done) {
|
||||
navigator.mediaDevices.enumerateDevices().then((devices) => {
|
||||
const result = devices.some((device) => !!device.label);
|
||||
if (result)
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('navigator.language', function() {
|
||||
it('should not be empty', function() {
|
||||
assert.notEqual(navigator.language, '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue