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

Unified Diff: pkg/scheduled_test/test/metatest.dart

Issue 12770017: pkg/unittest: config refactor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixed scheduled_test test 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
Index: pkg/scheduled_test/test/metatest.dart
diff --git a/pkg/scheduled_test/test/metatest.dart b/pkg/scheduled_test/test/metatest.dart
index 657e93e99270bcc11b12ced6c429dc339f333aae..d15760121d635efb6fbb45e6e23535c1bc74b772 100644
--- a/pkg/scheduled_test/test/metatest.dart
+++ b/pkg/scheduled_test/test/metatest.dart
@@ -184,9 +184,11 @@ String _indent(String str) {
/// Ensure that the metatest configuration is loaded.
void _ensureInitialized() {
- if (config is! _MetaConfiguration) configure(new _MetaConfiguration());
+ unittestConfiguration = _singleton;
}
+final _singleton = new _MetaConfiguration();
+
/// Special test configuration for use within the child isolates. This hides all
/// output and reports data back to the parent isolate.
class _MetaConfiguration extends Configuration {
« no previous file with comments | « no previous file | pkg/unittest/lib/compact_vm_config.dart » ('j') | pkg/unittest/lib/html_individual_config.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698