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

Unified Diff: pkg/unittest/lib/interactive_html_config.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/unittest/lib/interactive_html_config.dart
diff --git a/pkg/unittest/lib/interactive_html_config.dart b/pkg/unittest/lib/interactive_html_config.dart
index 2475d53405943f6ee7c3c31acb7cce6c285b4d0d..a1d05c0ff8af5ea5611f2c9fe186ee9cfa50abe5 100644
--- a/pkg/unittest/lib/interactive_html_config.dart
+++ b/pkg/unittest/lib/interactive_html_config.dart
@@ -466,15 +466,17 @@ void _prepareDom() {
* child, depending on whether the URL has a search part.
*/
void useInteractiveHtmlConfiguration() {
- if (config != null) return;
if (window.location.search == '') { // This is the parent.
_prepareDom();
- configure(new ParentInteractiveHtmlConfiguration());
+ unittestConfiguration = _singletonParent;
} else {
- configure(new ChildInteractiveHtmlConfiguration());
+ unittestConfiguration = _singletonChild;
}
}
+final _singletonParent = new ParentInteractiveHtmlConfiguration();
+final _singletonChild = new ChildInteractiveHtmlConfiguration();
+
String _CSS = """
body {
font-family: Arial, sans-serif;

Powered by Google App Engine
This is Rietveld 408576698