Skip to content

Commit

Permalink
test(chromium): disable webgl2 on headful (#4450)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder committed Nov 17, 2020
1 parent 79c592e commit 93b6fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/capabilities.spec.ts
Expand Up @@ -72,16 +72,17 @@ it('should play video', (test, { browserName, platform }) => {
it('should support webgl', (test, {browserName, headful}) => {
test.fixme(browserName === 'firefox' && !headful);
}, async ({page}) => {
const hasWebGL2 = await page.evaluate(() => {
const hasWebGL = await page.evaluate(() => {
const canvas = document.createElement('canvas');
return !!canvas.getContext('webgl');
});
expect(hasWebGL2).toBe(true);
expect(hasWebGL).toBe(true);
});

it('should support webgl 2', (test, {browserName, headful}) => {
test.skip(browserName === 'webkit', 'Webkit doesn\'t have webgl2 enabled yet upstream.');
test.fixme(browserName === 'firefox' && !headful);
test.fixme(browserName === 'chromium' && headful, 'chromium doesn\'t like webgl2 when running under xvfb');
}, async ({page}) => {
const hasWebGL2 = await page.evaluate(() => {
const canvas = document.createElement('canvas');
Expand Down

0 comments on commit 93b6fae

Please sign in to comment.