Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: test/runner/configuration/top_level_error_test.dart

Issue 1801363007: Add pause_after_load to the config file. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/runner/configuration/load.dart ('k') | test/runner/configuration/top_level_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « lib/src/runner/configuration/load.dart ('k') | test/runner/configuration/top_level_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698