@@ -34,8 +34,6 @@ commands:
34
34
- run :
35
35
name : download chrome
36
36
command : |
37
- # Try adding a dummy sound device for Chrome...
38
- /usr/sbin/modprobe snd-dummy
39
37
# TODO: Make these part of the base image
40
38
apt-get install -q -y libu2f-udev libvulkan1 xdg-utils
41
39
# wget -O ~/chrome.deb https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
@@ -312,12 +310,13 @@ commands:
312
310
EMTEST_DETECT_TEMPFILE_LEAKS : " 0"
313
311
# --no-sandbox because we are running as root and chrome requires
314
312
# this flag for now: https://crbug.com/638180
315
- CHROME_FLAGS_BASE : " --no-first-run -start-maximized --no-sandbox --use-gl=swiftshader --user-data-dir=/tmp/chrome-emscripten-profile --enable-experimental-web-platform-features --autoplay-policy=no-user-gesture-required "
313
+ CHROME_FLAGS_BASE : " --no-first-run -start-maximized --no-sandbox --use-gl=swiftshader --user-data-dir=/tmp/chrome-emscripten-profile --enable-experimental-web-platform-features"
316
314
CHROME_FLAGS_HEADLESS : " --headless=new --remote-debugging-port=1234"
317
315
CHROME_FLAGS_WASM : " --enable-experimental-webassembly-features --js-flags=\" --experimental-wasm-stack-switching --experimental-wasm-type-reflection\" "
318
316
CHROME_FLAGS_NOCACHE : " --disk-cache-dir=/dev/null --disk-cache-size=1 --media-cache-size=1 --disable-application-cache --incognito"
317
+ CHROME_FLAGS_AUDIO : " --autoplay-policy=no-user-gesture-required --use-fake-device-for-media-stream"
319
318
command : |
320
- export EMTEST_BROWSER="/usr/bin/google-chrome $CHROME_FLAGS_BASE $CHROME_FLAGS_HEADLESS $CHROME_FLAGS_WASM $CHROME_FLAGS_NOCACHE"
319
+ export EMTEST_BROWSER="/usr/bin/google-chrome $CHROME_FLAGS_BASE $CHROME_FLAGS_HEADLESS $CHROME_FLAGS_WASM $CHROME_FLAGS_NOCACHE $CHROME_FLAGS_AUDIO "
321
320
# There are tests in the browser test suite that using libraries
322
321
# that are not included by "./embuilder build ALL". For example the
323
322
# PIC version of libSDL which is used by test_sdl2_misc_main_module
0 commit comments