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

Side by Side Diff: lib/src/runner/configuration/load.dart

Issue 1807413002: Disallow names and plain_names in a test context. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: 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 | « no previous file | no next file » | 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 import 'dart:io'; 5 import 'dart:io';
6 6
7 import 'package:boolean_selector/boolean_selector.dart'; 7 import 'package:boolean_selector/boolean_selector.dart';
8 import 'package:glob/glob.dart'; 8 import 'package:glob/glob.dart';
9 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
10 import 'package:source_span/source_span.dart'; 10 import 'package:source_span/source_span.dart';
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 /// Loads runner configuration (but not test configuration). 125 /// Loads runner configuration (but not test configuration).
126 /// 126 ///
127 /// If [_runnerConfig] is `false`, this will error if there are any 127 /// If [_runnerConfig] is `false`, this will error if there are any
128 /// runner-level configuration fields. 128 /// runner-level configuration fields.
129 Configuration _loadRunnerConfig() { 129 Configuration _loadRunnerConfig() {
130 if (!_runnerConfig) { 130 if (!_runnerConfig) {
131 _disallow("reporter"); 131 _disallow("reporter");
132 _disallow("pub_serve"); 132 _disallow("pub_serve");
133 _disallow("concurrency"); 133 _disallow("concurrency");
134 _disallow("names");
135 _disallow("plain_names");
134 _disallow("platforms"); 136 _disallow("platforms");
135 _disallow("paths"); 137 _disallow("paths");
136 _disallow("filename"); 138 _disallow("filename");
137 _disallow("add_presets"); 139 _disallow("add_presets");
138 _disallow("include_tags"); 140 _disallow("include_tags");
139 _disallow("exclude_tags"); 141 _disallow("exclude_tags");
140 return Configuration.empty; 142 return Configuration.empty;
141 } 143 }
142 144
143 var reporter = _getString("reporter"); 145 var reporter = _getString("reporter");
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 if (!_document.containsKey(field)) return; 337 if (!_document.containsKey(field)) return;
336 _error("$field isn't supported here.", field); 338 _error("$field isn't supported here.", field);
337 } 339 }
338 340
339 /// Throws a [SourceSpanFormatException] with [message] about [field]. 341 /// Throws a [SourceSpanFormatException] with [message] about [field].
340 void _error(String message, String field) { 342 void _error(String message, String field) {
341 throw new SourceSpanFormatException( 343 throw new SourceSpanFormatException(
342 message, _document.nodes[field].span, _source); 344 message, _document.nodes[field].span, _source);
343 } 345 }
344 } 346 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698