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

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

Issue 13130005: Remove throw from unittest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/html/audiobuffersourcenode_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/unittest.dart
diff --git a/pkg/unittest/lib/unittest.dart b/pkg/unittest/lib/unittest.dart
index 329e20dc68b61be922a967f566b95ca5635b83e1..efd2e83bea79e15ac99bb8178d6624e20b4249c8 100644
--- a/pkg/unittest/lib/unittest.dart
+++ b/pkg/unittest/lib/unittest.dart
@@ -176,12 +176,7 @@ Configuration get unittestConfiguration => _config;
* Throws a [StateError] if there is an existing, incompatible value.
*/
void set unittestConfiguration(Configuration value) {
- if(!identical(_config, value)) {
- if(_config != null) {
- throw new StateError('unittestConfiguration has already been set');
- }
- _config = value;
- }
+ _config = value;
}
void logMessage(String message) => _config.logMessage(message);
« no previous file with comments | « no previous file | tests/html/audiobuffersourcenode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698