Only enable webgl tests on chromium and non-headless firefox

See microsoft/playwright#1032
This commit is contained in:
Daniel Imms
2020-02-15 04:23:31 -08:00
parent 6082c00b1d
commit 93026bcae0
2 changed files with 14 additions and 3 deletions
@@ -81,7 +81,7 @@ export class WebglRenderer extends Disposable implements IRenderer {
};
this._gl = this._canvas.getContext('webgl2', contextAttributes) as IWebGL2RenderingContext;
if (!this._gl) {
throw new Error('WebGL2 not supported');
throw new Error('WebGL2 not supported ' + this._gl);
}
this._core.screenElement.appendChild(this._canvas);