Skip to content

Commit

Permalink
disable screen capture test on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Mar 24, 2022
1 parent fe08a47 commit 176f6f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec-main/api-browser-view-spec.ts
Expand Up @@ -3,7 +3,7 @@ import * as path from 'path';
import { emittedOnce } from './events-helpers';
import { BrowserView, BrowserWindow, screen, webContents } from 'electron/main';
import { closeWindow } from './window-helpers';
import { defer, startRemoteControlApp } from './spec-helpers';
import { defer, ifit, startRemoteControlApp } from './spec-helpers';
import { areColorsSimilar, captureScreen, getPixelColor } from './screen-helpers';

describe('BrowserView module', () => {
Expand Down Expand Up @@ -62,7 +62,7 @@ describe('BrowserView module', () => {
}).to.throw(/conversion failure/);
});

it('sets the background color to transparent if none is set', async () => {
ifit(process.platform !== 'linux')('sets the background color to transparent if none is set', async () => {
const display = screen.getPrimaryDisplay();
const WINDOW_BACKGROUND_COLOR = '#55ccbb';

Expand All @@ -85,7 +85,7 @@ describe('BrowserView module', () => {
expect(areColorsSimilar(centerColor, WINDOW_BACKGROUND_COLOR)).to.be.true();
});

it('successfully applies the background color', async () => {
ifit(process.platform !== 'linux')('successfully applies the background color', async () => {
const WINDOW_BACKGROUND_COLOR = '#55ccbb';
const VIEW_BACKGROUND_COLOR = '#ff00ff';
const display = screen.getPrimaryDisplay();
Expand Down

0 comments on commit 176f6f7

Please sign in to comment.