| 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 import 'dart:io'; | 5 import 'dart:io'; |
| 6 | 6 |
| 7 import 'package:path/path.dart' as p; | 7 import 'package:path/path.dart' as p; |
| 8 import 'package:unittest/src/util/exit_codes.dart' as exit_codes; | 8 import 'package:unittest/src/util/exit_codes.dart' as exit_codes; |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 10 | 10 |
| 11 import 'io.dart'; | 11 import '../io.dart'; |
| 12 | 12 |
| 13 String _sandbox; | 13 String _sandbox; |
| 14 | 14 |
| 15 final _success = """ | 15 final _success = """ |
| 16 import 'dart:async'; | 16 import 'dart:async'; |
| 17 | 17 |
| 18 import 'package:unittest/unittest.dart'; | 18 import 'package:unittest/unittest.dart'; |
| 19 | 19 |
| 20 void main() { | 20 void main() { |
| 21 test("success", () {}); | 21 test("success", () {}); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 expect(result.stdout, contains("\u001b[31m")); | 226 expect(result.stdout, contains("\u001b[31m")); |
| 227 }); | 227 }); |
| 228 }); | 228 }); |
| 229 } | 229 } |
| 230 | 230 |
| 231 ProcessResult _runUnittest(List<String> args) => | 231 ProcessResult _runUnittest(List<String> args) => |
| 232 runUnittest(args, workingDirectory: _sandbox); | 232 runUnittest(args, workingDirectory: _sandbox); |
| 233 | 233 |
| 234 ProcessResult _runDart(List<String> args) => | 234 ProcessResult _runDart(List<String> args) => |
| 235 runDart(args, workingDirectory: _sandbox); | 235 runDart(args, workingDirectory: _sandbox); |
| OLD | NEW |