Skip to content

Commit

Permalink
perf(e2e): enable GPU for osx and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Sep 24, 2019
1 parent 440fd9d commit d34d0f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/compiler/config/validate-testing.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as d from '../../declarations';
import os from 'os';
import { isOutputTargetDist, isOutputTargetWww } from '../output-targets/output-utils';
import { buildError, buildWarn } from '@utils';

Expand All @@ -21,9 +22,11 @@ export function validateTesting(config: d.Config, diagnostics: d.Diagnostic[]) {
}

testing.browserArgs = testing.browserArgs || [];
addOption(testing.browserArgs, '--disable-gpu');
addOption(testing.browserArgs, '--font-render-hinting=medium');
addOption(testing.browserArgs, '--enable-font-antialiasing');
if (os.platform() === 'win32') {
addOption(testing.browserArgs, '--disable-gpu');
}

if (config.flags.ci) {
addOption(testing.browserArgs, '--no-sandbox');
Expand Down

0 comments on commit d34d0f8

Please sign in to comment.