blob: 929d7773653fe4af43c32e967fe925e439b2802a [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:collection';
import 'package:test_api/src/backend/runtime.dart'; // ignore: implementation_imports
import '../executable_settings.dart';
/// Default settings for starting browser executables.
final defaultSettings = UnmodifiableMapView({
Runtime.chrome: ExecutableSettings(
linuxExecutable: 'google-chrome',
macOSExecutable:
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
windowsExecutable: r'Google\Chrome\Application\chrome.exe',
environmentOverride: 'CHROME_EXECUTABLE'),
Runtime.edge: ExecutableSettings(
linuxExecutable: 'microsoft-edge-stable',
windowsExecutable: r'Microsoft\Edge\Application\msedge.exe',
macOSExecutable:
'/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge',
environmentOverride: 'MS_EDGE_EXECUTABLE',
),
Runtime.firefox: ExecutableSettings(
linuxExecutable: 'firefox',
macOSExecutable: '/Applications/Firefox.app/Contents/MacOS/firefox-bin',
windowsExecutable: r'Mozilla Firefox\firefox.exe',
environmentOverride: 'FIREFOX_EXECUTABLE'),
Runtime.internetExplorer:
ExecutableSettings(windowsExecutable: r'Internet Explorer\iexplore.exe'),
Runtime.safari: ExecutableSettings(
macOSExecutable: '/Applications/Safari.app/Contents/MacOS/Safari',
environmentOverride: 'SAFARI_EXECUTABLE'),
});