Chromium Code Reviews| 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 fee9a46e95d86865e0111830f668f9eb26d813ad..7a52242026c1dff65b8902ad39f79703809e5dae 100644 |
| --- a/pkg/unittest/lib/html_individual_config.dart |
| +++ b/pkg/unittest/lib/html_individual_config.dart |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| @@ -48,6 +48,8 @@ class HtmlIndividualConfiguration extends htmlconfig.HtmlConfiguration { |
| } |
| void useHtmlIndividualConfiguration([bool isLayoutTest = false]) { |
| - if (unittest.config != null) return; |
| - unittest.configure(new HtmlIndividualConfiguration(isLayoutTest)); |
| + unittest.unittestConfiguration = isLayoutTest ? _singletonLayout : _singletonNotLayout; |
|
Siggi Cherem (dart-lang)
2013/03/27 21:05:58
nit: 80 col
|
| } |
| + |
| +final _singletonLayout = new HtmlIndividualConfiguration(true); |
| +final _singletonNotLayout = new HtmlIndividualConfiguration(false); |