| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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; |
| 12 | 12 |
| 13 import 'dart:collection' show LinkedHashMap; |
| 13 import 'dart:html'; | 14 import 'dart:html'; |
| 14 import 'unittest.dart'; | 15 import 'unittest.dart'; |
| 15 | 16 |
| 16 class HtmlEnhancedConfiguration extends Configuration { | 17 class HtmlEnhancedConfiguration extends Configuration { |
| 17 /** Whether this is run within dartium layout tests. */ | 18 /** Whether this is run within dartium layout tests. */ |
| 18 final bool _isLayoutTest; | 19 final bool _isLayoutTest; |
| 19 HtmlEnhancedConfiguration(this._isLayoutTest); | 20 HtmlEnhancedConfiguration(this._isLayoutTest); |
| 20 | 21 |
| 21 // TODO(rnystrom): Get rid of this if we get canonical closures for methods. | 22 // TODO(rnystrom): Get rid of this if we get canonical closures for methods. |
| 22 EventListener _onErrorClosure; | 23 EventListener _onErrorClosure; |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 { | 409 { |
| 409 } | 410 } |
| 410 | 411 |
| 411 '''; | 412 '''; |
| 412 } | 413 } |
| 413 | 414 |
| 414 void useHtmlEnhancedConfiguration([bool isLayoutTest = false]) { | 415 void useHtmlEnhancedConfiguration([bool isLayoutTest = false]) { |
| 415 if (config != null) return; | 416 if (config != null) return; |
| 416 configure(new HtmlEnhancedConfiguration(isLayoutTest)); | 417 configure(new HtmlEnhancedConfiguration(isLayoutTest)); |
| 417 } | 418 } |
| OLD | NEW |