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 test.runner.browser.internet_explorer; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:io'; | 6 import 'dart:io'; |
9 | 7 |
10 import 'package:path/path.dart' as p; | 8 import 'package:path/path.dart' as p; |
11 | 9 |
12 import 'browser.dart'; | 10 import 'browser.dart'; |
13 | 11 |
14 /// A class for running an instance of Internet Explorer. | 12 /// A class for running an instance of Internet Explorer. |
15 /// | 13 /// |
16 /// Any errors starting or running the process are reported through [onExit]. | 14 /// Any errors starting or running the process are reported through [onExit]. |
(...skipping 29 matching lines...) Expand all Loading... |
46 | 44 |
47 var path = p.join(prefix, suffix); | 45 var path = p.join(prefix, suffix); |
48 if (new File(p.join(prefix, suffix)).existsSync()) return path; | 46 if (new File(p.join(prefix, suffix)).existsSync()) return path; |
49 } | 47 } |
50 | 48 |
51 // Fall back on looking it up on the path. This probably won't work, but at | 49 // Fall back on looking it up on the path. This probably won't work, but at |
52 // least it will fail with a useful error message. | 50 // least it will fail with a useful error message. |
53 return "iexplore.exe"; | 51 return "iexplore.exe"; |
54 } | 52 } |
55 } | 53 } |
OLD | NEW |