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

Unified Diff: pkg/unittest/lib/unittest.dart

Issue 772463003: Don't Throw Error when setting unittest config twice (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Fixed comments Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/unittest/CHANGELOG.md ('k') | pkg/unittest/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/unittest.dart
===================================================================
--- pkg/unittest/lib/unittest.dart (revision 42037)
+++ pkg/unittest/lib/unittest.dart (working copy)
@@ -194,9 +194,11 @@
void set unittestConfiguration(Configuration value) {
if (!identical(_config, value)) {
if (_config != null) {
- throw new StateError('unittestConfiguration has already been set');
+ logMessage('Warning: The unittestConfiguration has already been set. New '
+ 'unittestConfiguration ignored.');
+ } else {
+ _config = value;
}
- _config = value;
}
}
« no previous file with comments | « pkg/unittest/CHANGELOG.md ('k') | pkg/unittest/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698