| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * A simple unit test library for running tests in a browser. | 6 * A simple unit test library for running tests in a browser. |
| 7 * | 7 * |
| 8 * Provides enhanced HTML output with collapsible group headers | 8 * Provides enhanced HTML output with collapsible group headers |
| 9 * and other at-a-glance information about the test results. | 9 * and other at-a-glance information about the test results. |
| 10 */ | 10 */ |
| 11 library unittest_html_enhanced_config; | 11 library unittest_html_enhanced_config; |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 } | 411 } |
| 412 | 412 |
| 413 .unittest-row-description | 413 .unittest-row-description |
| 414 { | 414 { |
| 415 } | 415 } |
| 416 | 416 |
| 417 '''; | 417 '''; |
| 418 } | 418 } |
| 419 | 419 |
| 420 void useHtmlEnhancedConfiguration([bool isLayoutTest = false]) { | 420 void useHtmlEnhancedConfiguration([bool isLayoutTest = false]) { |
| 421 if (config != null) return; | 421 unittestConfiguration = isLayoutTest ? _singletonLayout : _singletonNotLayout; |
| 422 configure(new HtmlEnhancedConfiguration(isLayoutTest)); | |
| 423 } | 422 } |
| 423 |
| 424 final _singletonLayout = new HtmlEnhancedConfiguration(true); |
| 425 final _singletonNotLayout = new HtmlEnhancedConfiguration(false); |
| OLD | NEW |