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

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

Issue 11862002: Make 'useXConfiguration' check for an existing configuration. This is so that it (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
Index: pkg/unittest/lib/vm_config.dart
diff --git a/pkg/unittest/lib/vm_config.dart b/pkg/unittest/lib/vm_config.dart
index 0b23996fea54dcb8ba58f4da17f974d41129a598..001b75588218c68d97353c6fa8a6a2afdfb84219 100644
--- a/pkg/unittest/lib/vm_config.dart
+++ b/pkg/unittest/lib/vm_config.dart
@@ -25,5 +25,6 @@ class VMConfiguration extends Configuration {
}
void useVMConfiguration() {
+ if (config != null) return;
configure(new VMConfiguration());
}
« pkg/unittest/lib/compact_vm_config.dart ('K') | « pkg/unittest/lib/interactive_html_config.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698