| 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") |
| 6 |
| 5 import 'dart:io'; | 7 import 'dart:io'; |
| 6 | 8 |
| 7 import 'package:path/path.dart' as p; | 9 import 'package:path/path.dart' as p; |
| 8 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| 9 | 11 |
| 10 import '../../io.dart'; | 12 import '../../io.dart'; |
| 11 | 13 |
| 12 String _sandbox; | 14 String _sandbox; |
| 13 | 15 |
| 14 void main() { | 16 void main() { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 34 | 36 |
| 35 var result = _runUnittest(["-p", "chrome", "-p", "vm", "test.dart"]); | 37 var result = _runUnittest(["-p", "chrome", "-p", "vm", "test.dart"]); |
| 36 expect(result.stdout, contains("[VM]")); | 38 expect(result.stdout, contains("[VM]")); |
| 37 expect(result.stdout, contains("[Chrome]")); | 39 expect(result.stdout, contains("[Chrome]")); |
| 38 expect(result.exitCode, equals(0)); | 40 expect(result.exitCode, equals(0)); |
| 39 }); | 41 }); |
| 40 } | 42 } |
| 41 | 43 |
| 42 ProcessResult _runUnittest(List<String> args) => | 44 ProcessResult _runUnittest(List<String> args) => |
| 43 runUnittest(args, workingDirectory: _sandbox); | 45 runUnittest(args, workingDirectory: _sandbox); |
| OLD | NEW |