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

Unified Diff: pkg/unittest/lib/html_individual_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/html_individual_config.dart
diff --git a/pkg/unittest/lib/html_individual_config.dart b/pkg/unittest/lib/html_individual_config.dart
index 95e051478bc48fa04d8169c3341a4b594d9c5391..2de4ed22d206d2ae144afb67bc05714b7fa3aa06 100644
--- a/pkg/unittest/lib/html_individual_config.dart
+++ b/pkg/unittest/lib/html_individual_config.dart
@@ -39,5 +39,6 @@ class HtmlIndividualConfiguration extends htmlconfig.HtmlConfiguration {
}
void useHtmlIndividualConfiguration([bool isLayoutTest = false]) {
+ if (unittest.config != null) return;
unittest.configure(new HtmlIndividualConfiguration(isLayoutTest));
}

Powered by Google App Engine
This is Rietveld 408576698