OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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:convert'; | 7 import 'dart:convert'; |
8 | 8 |
9 import 'package:scheduled_test/descriptor.dart' as d; | 9 import 'package:scheduled_test/descriptor.dart' as d; |
10 import 'package:scheduled_test/scheduled_test.dart'; | 10 import 'package:scheduled_test/scheduled_test.dart'; |
11 import 'package:test/src/util/exit_codes.dart' as exit_codes; | 11 import 'package:test/src/util/exit_codes.dart' as exit_codes; |
12 | 12 |
13 import '../../io.dart'; | 13 import '../../io.dart'; |
14 | 14 |
15 void main() { | 15 void main() { |
16 useSandbox(); | 16 useSandbox(); |
17 | 17 |
| 18 test("rejects an invalid pause_after_load", () { |
| 19 d.file("dart_test.yaml", JSON.encode({ |
| 20 "pause_after_load": "flup" |
| 21 })).create(); |
| 22 |
| 23 var test = runTest(["test.dart"]); |
| 24 test.stderr.expect(containsInOrder([ |
| 25 "pause_after_load must be a boolean", |
| 26 "^^^^^^" |
| 27 ])); |
| 28 test.shouldExit(exit_codes.data); |
| 29 }); |
| 30 |
18 test("rejects an invalid verbose_trace", () { | 31 test("rejects an invalid verbose_trace", () { |
19 d.file("dart_test.yaml", JSON.encode({ | 32 d.file("dart_test.yaml", JSON.encode({ |
20 "verbose_trace": "flup" | 33 "verbose_trace": "flup" |
21 })).create(); | 34 })).create(); |
22 | 35 |
23 var test = runTest(["test.dart"]); | 36 var test = runTest(["test.dart"]); |
24 test.stderr.expect(containsInOrder([ | 37 test.stderr.expect(containsInOrder([ |
25 "verbose_trace must be a boolean", | 38 "verbose_trace must be a boolean", |
26 "^^^^^^" | 39 "^^^^^^" |
27 ])); | 40 ])); |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 322 |
310 var test = runTest(["test.dart"]); | 323 var test = runTest(["test.dart"]); |
311 test.stderr.expect(containsInOrder([ | 324 test.stderr.expect(containsInOrder([ |
312 'Invalid filename: expected ",".', | 325 'Invalid filename: expected ",".', |
313 "^^^^^^" | 326 "^^^^^^" |
314 ])); | 327 ])); |
315 test.shouldExit(exit_codes.data); | 328 test.shouldExit(exit_codes.data); |
316 }); | 329 }); |
317 }); | 330 }); |
318 } | 331 } |
OLD | NEW |