| Index: pkg/unittest/lib/html_layout_config.dart
|
| diff --git a/pkg/unittest/lib/html_layout_config.dart b/pkg/unittest/lib/html_layout_config.dart
|
| index ddb0415df75943fb398f2348a3eebb682d6f3da7..045a496ed40e14fb204ab9c39d81b1c26e065bab 100644
|
| --- a/pkg/unittest/lib/html_layout_config.dart
|
| +++ b/pkg/unittest/lib/html_layout_config.dart
|
| @@ -306,12 +306,13 @@ void _prepareDom() {
|
| * child, depending on whether the URL has a search part.
|
| */
|
| void useHtmlLayoutConfiguration() {
|
| - if (config != null) return;
|
| if (window.location.search == '') { // This is the parent.
|
| _prepareDom();
|
| - configure(new ParentHtmlConfiguration());
|
| + config = _singletonParent;
|
| } else {
|
| - configure(new ChildHtmlConfiguration());
|
| + config = _singletonChild;
|
| }
|
| }
|
|
|
| +final _singletonParent = new ParentHtmlConfiguration();
|
| +final _singletonChild = new ChildHtmlConfiguration();
|
|
|