Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1473)

Unified Diff: tools/test.dart

Issue 17235003: Reduce the number of browser processes on safari (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test.dart
diff --git a/tools/test.dart b/tools/test.dart
index b1c587a55d7c7b5ca272d5f673b34d539dde174f..4a79b96979b72621b454acc6e2d32d07f6a07f01 100755
--- a/tools/test.dart
+++ b/tools/test.dart
@@ -26,6 +26,7 @@ library test;
import "dart:async";
import "dart:io";
+import "dart:math" as math;
import "testing/dart/http_server.dart";
import "testing/dart/record_and_replay.dart";
import "testing/dart/test_options.dart";
@@ -161,6 +162,11 @@ void testConfigurations(List<Map> configurations) {
// http://code.google.com/p/selenium/wiki/InternetExplorerDriver.
if (conf['runtime'].startsWith('ie')) {
maxBrowserProcesses = 1;
+ } else if (conf['runtime'].startsWith('safari') &&
+ conf['use_browser_controller']) {
+ // FIXME(kustermann/ricow): Remove this once the new browser_controller is
+ // stable.
+ maxBrowserProcesses = math.max(maxProcesses - 2, 2);
}
for (String key in selectors.keys) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698