| 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 'package:scheduled_test/descriptor.dart' as d; | 7 import 'package:scheduled_test/descriptor.dart' as d; |
| 8 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
| 9 | 9 |
| 10 import '../../io.dart'; | 10 import '../../io.dart'; |
| 11 | 11 |
| 12 void main() { | 12 void main() { |
| 13 useSandbox(); | 13 useSandbox(); |
| 14 | 14 |
| 15 test("prints the platform name when running on multiple platforms", () { | 15 test("prints the platform name when running on multiple platforms", () { |
| 16 d.file("test.dart", """ | 16 d.file("test.dart", """ |
| 17 import 'dart:async'; | 17 import 'dart:async'; |
| 18 | 18 |
| 19 import 'package:path/path.dart' as p; | 19 import 'package:path/path.dart' as p; |
| 20 import 'package:test/test.dart'; | 20 import 'package:test/test.dart'; |
| 21 | 21 |
| 22 void main() { | 22 void main() { |
| 23 test("success", () {}); | 23 test("success", () {}); |
| 24 } | 24 } |
| 25 """).create(); | 25 """).create(); |
| 26 | 26 |
| 27 var test = runTest([ | 27 var test = runTest([ |
| 28 "-r", "compact", | |
| 29 "-p", "content-shell", | 28 "-p", "content-shell", |
| 30 "-p", "vm", | 29 "-p", "vm", |
| 31 "-j", "1", | 30 "-j", "1", |
| 32 "test.dart" | 31 "test.dart" |
| 33 ], compact: true); | 32 ], reporter: "compact"); |
| 34 | 33 |
| 35 test.stdout.expect(containsInOrder(["[VM]", "[Dartium Content Shell]"])); | 34 test.stdout.expect(containsInOrder(["[VM]", "[Dartium Content Shell]"])); |
| 36 | 35 |
| 37 test.shouldExit(0); | 36 test.shouldExit(0); |
| 38 }); | 37 }); |
| 39 } | 38 } |
| OLD | NEW |