From 2c0b8f91246e841d8aa4d9728327b317c548a843 Mon Sep 17 00:00:00 2001 From: lana-k Date: Wed, 25 Feb 2026 22:58:28 +0100 Subject: [PATCH] enable webgl in chromium --- karma.conf.cjs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/karma.conf.cjs b/karma.conf.cjs index 46c2676..edf651e 100644 --- a/karma.conf.cjs +++ b/karma.conf.cjs @@ -92,11 +92,23 @@ module.exports = function (config) { 'dom.w3c_touch_events.enabled': 1, 'dom.events.asyncClipboard.clipboardItem': true } + }, + ChromiumHeadlessWebGL: { + base: 'ChromiumHeadless', + flags: [ + '--headless=new', + '--use-angle=swiftshader', + '--use-gl=angle', + '--enable-webgl', + '--ignore-gpu-blocklist', + '--disable-gpu-sandbox', + '--no-sandbox' + ] } }, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['ChromiumHeadless', 'FirefoxHeadlessTouch'], + browsers: ['ChromiumHeadlessWebGL', 'FirefoxHeadlessTouch'], // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits