test: remove some remote usage from chromium specs (#20121)

* test: remove remote usage from chromium specs

* disable tts test

* port navigator.mediaDevices tests

* fake camera and microphone

* Update spec-main/chromium-spec.ts

Co-Authored-By: John Kleinschmidt <jkleinsc@github.com>
This commit is contained in:
Jeremy Apthorp 2019-10-11 13:55:50 -07:00 committed by GitHub
parent 1b2c6a33b3
commit 2aa7ab821c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 420 additions and 462 deletions

View file

@ -535,6 +535,13 @@ ifdescribe(features.isRemoteModuleEnabled())('remote module', () => {
})
})
describe('constructing a Uint8Array', () => {
it('does not crash', () => {
const RUint8Array = remote.getGlobal('Uint8Array')
const arr = new RUint8Array()
})
})
describe('remote listeners', () => {
let w = null
afterEach(() => closeWindow(w).then(() => { w = null }))