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

Unified Diff: pkg/unittest/lib/interactive_html_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/interactive_html_config.dart
diff --git a/pkg/unittest/lib/interactive_html_config.dart b/pkg/unittest/lib/interactive_html_config.dart
index fa3c283bbc09b3c90483b3feda1869a2696351fb..37beabf75b059786397f2e621041123c646f47a7 100644
--- a/pkg/unittest/lib/interactive_html_config.dart
+++ b/pkg/unittest/lib/interactive_html_config.dart
@@ -469,6 +469,7 @@ void _prepareDom() {
* child, depedning 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());

Powered by Google App Engine
This is Rietveld 408576698