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

Unified Diff: tools/testing/dart/utils.dart

Issue 25876002: test.py: Propagate the global --dartium option to the browser controller (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« tools/testing/dart/test_runner.dart ('K') | « tools/testing/dart/test_suite.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/utils.dart
diff --git a/tools/testing/dart/utils.dart b/tools/testing/dart/utils.dart
index 51109e5351d7d7c5c7f73f7867f7f3769c4d0d3e..1c54b23a609c3f60fa35bc8e49bb7666eb961aaa 100644
--- a/tools/testing/dart/utils.dart
+++ b/tools/testing/dart/utils.dart
@@ -127,6 +127,20 @@ String decodeUtf8(List<int> bytes) {
return utf.decodeUtf8(bytes);
}
+class Locations {
+ static String getDartiumLocation(Map globalConfiguration) {
+ var dartium = globalConfiguration['dartium'];
+ if (dartium != null && dartium != '') {
+ return dartium;
+ }
+ if (Platform.operatingSystem == 'macos') {
+ return new Path('client/tests/dartium/Chromium.app/Contents/'
+ 'MacOS/Chromium').toNativePath();
+ }
+ return new Path('client/tests/dartium/chrome').toNativePath();
+ }
+}
+
// This function is pretty stupid and only puts quotes around an argument if
// it the argument contains a space.
String escapeCommandLineArgument(String argument) {
« tools/testing/dart/test_runner.dart ('K') | « tools/testing/dart/test_suite.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698