OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library unittest.runner.browser.chrome; | 5 library test.runner.browser.chrome; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import 'package:path/path.dart' as p; | 10 import 'package:path/path.dart' as p; |
11 | 11 |
12 import '../../util/io.dart'; | 12 import '../../util/io.dart'; |
13 | 13 |
14 // TODO(nweiz): move this into its own package? | 14 // TODO(nweiz): move this into its own package? |
15 // TODO(nweiz): support other browsers. | 15 // TODO(nweiz): support other browsers. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 var path = p.join(prefix, suffix); | 113 var path = p.join(prefix, suffix); |
114 if (new File(p.join(prefix, suffix)).existsSync()) return path; | 114 if (new File(p.join(prefix, suffix)).existsSync()) return path; |
115 } | 115 } |
116 | 116 |
117 // Fall back on looking it up on the path. This probably won't work, but at | 117 // Fall back on looking it up on the path. This probably won't work, but at |
118 // least it will fail with a useful error message. | 118 // least it will fail with a useful error message. |
119 return "chrome.exe"; | 119 return "chrome.exe"; |
120 } | 120 } |
121 } | 121 } |
OLD | NEW |