| OLD | NEW |
| 1 // Copyright (c) 2013, 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 /// A unit test library for running groups of tests in a browser, instead of the | 5 /// A unit test library for running groups of tests in a browser, instead of the |
| 6 /// entire test file. This is especially used for large tests files that have | 6 /// entire test file. This is especially used for large tests files that have |
| 7 /// many subtests, so we can mark groups as failing at a finer granularity than | 7 /// many subtests, so we can mark groups as failing at a finer granularity than |
| 8 /// the entire test file. | 8 /// the entire test file. |
| 9 /// | 9 /// |
| 10 /// To use, import this file, and call [useHtmlIndividualConfiguration] at the | 10 /// To use, import this file, and call [useHtmlIndividualConfiguration] at the |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 | 41 |
| 42 void useHtmlIndividualConfiguration([bool isLayoutTest = false]) { | 42 void useHtmlIndividualConfiguration([bool isLayoutTest = false]) { |
| 43 unittest.unittestConfiguration = | 43 unittest.unittestConfiguration = |
| 44 isLayoutTest ? _singletonLayout : _singletonNotLayout; | 44 isLayoutTest ? _singletonLayout : _singletonNotLayout; |
| 45 } | 45 } |
| 46 | 46 |
| 47 final _singletonLayout = new HtmlIndividualConfiguration(true); | 47 final _singletonLayout = new HtmlIndividualConfiguration(true); |
| 48 final _singletonNotLayout = new HtmlIndividualConfiguration(false); | 48 final _singletonNotLayout = new HtmlIndividualConfiguration(false); |
| OLD | NEW |