| 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/io.dart'; | 10 import 'package:test/src/util/io.dart'; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 import 'dart:async'; | 28 import 'dart:async'; |
| 29 | 29 |
| 30 import 'package:path/path.dart' as p; | 30 import 'package:path/path.dart' as p; |
| 31 import 'package:test/test.dart'; | 31 import 'package:test/test.dart'; |
| 32 | 32 |
| 33 void main() { | 33 void main() { |
| 34 test("success", () {}); | 34 test("success", () {}); |
| 35 } | 35 } |
| 36 """); | 36 """); |
| 37 | 37 |
| 38 var result = _runUnittest( | 38 var result = _runTest( |
| 39 ["-p", "chrome", "-p", "vm", "-j", "1", "test.dart"]); | 39 ["-p", "chrome", "-p", "vm", "-j", "1", "test.dart"]); |
| 40 expect(result.stdout, contains("[VM]")); | 40 expect(result.stdout, contains("[VM]")); |
| 41 expect(result.stdout, contains("[Chrome]")); | 41 expect(result.stdout, contains("[Chrome]")); |
| 42 expect(result.exitCode, equals(0)); | 42 expect(result.exitCode, equals(0)); |
| 43 }); | 43 }); |
| 44 } | 44 } |
| 45 | 45 |
| 46 ProcessResult _runUnittest(List<String> args) => | 46 ProcessResult _runTest(List<String> args) => |
| 47 runUnittest(args, workingDirectory: _sandbox); | 47 runTest(args, workingDirectory: _sandbox); |
| OLD | NEW |