| 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 @TestOn("vm") | 5 @TestOn("vm") |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:path/path.dart' as p; | 9 import 'package:path/path.dart' as p; |
| 10 import 'package:test/src/util/exit_codes.dart' as exit_codes; | |
| 11 import 'package:test/src/util/io.dart'; | 10 import 'package:test/src/util/io.dart'; |
| 12 import 'package:test/test.dart'; | 11 import 'package:test/test.dart'; |
| 13 | 12 |
| 14 import '../../io.dart'; | 13 import '../../io.dart'; |
| 15 | 14 |
| 16 String _sandbox; | 15 String _sandbox; |
| 17 | 16 |
| 18 final _success = """ | 17 final _success = """ |
| 19 import 'dart:async'; | 18 import 'dart:async'; |
| 20 | 19 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 """); | 215 """); |
| 217 | 216 |
| 218 var result = _runUnittest(["-p", "chrome", "test.dart"]); | 217 var result = _runUnittest(["-p", "chrome", "test.dart"]); |
| 219 expect(result.stdout, contains("Hello,\nworld!\n")); | 218 expect(result.stdout, contains("Hello,\nworld!\n")); |
| 220 expect(result.exitCode, equals(0)); | 219 expect(result.exitCode, equals(0)); |
| 221 }); | 220 }); |
| 222 } | 221 } |
| 223 | 222 |
| 224 ProcessResult _runUnittest(List<String> args) => | 223 ProcessResult _runUnittest(List<String> args) => |
| 225 runUnittest(args, workingDirectory: _sandbox); | 224 runUnittest(args, workingDirectory: _sandbox); |
| OLD | NEW |