Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: pkg/unittest/lib/html_individual_config.dart

Issue 208273009: pkg/unittest: Removed references to expectAsync[Until]X in docs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/unittest/lib/html_enhanced_config.dart ('k') | pkg/unittest/lib/src/configuration.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /** 5 /// A unit test library for running groups of tests in a browser, instead of the
6 * 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
7 * 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
8 * many subtests, so we can mark groups as failing at a finer granularity than 8 /// the entire test file.
9 * the entire test file. 9 ///
10 * 10 /// To use, import this file, and call [useHtmlIndividualConfiguration] at the
11 * To use, import this file, and call [useHtmlIndividualConfiguration] at the 11 /// start of your set sequence. Important constraint: your group descriptions
12 * start of your set sequence. Important constraint: your group descriptions 12 /// MUST NOT contain spaces.
13 * MUST NOT contain spaces.
14 */
15 library unittest.html_individual_config; 13 library unittest.html_individual_config;
16 14
17 import 'dart:html'; 15 import 'dart:html';
18 import 'unittest.dart' as unittest; 16 import 'unittest.dart' as unittest;
19 import 'html_config.dart' as htmlconfig; 17 import 'html_config.dart' as htmlconfig;
20 18
21 class HtmlIndividualConfiguration extends htmlconfig.HtmlConfiguration { 19 class HtmlIndividualConfiguration extends htmlconfig.HtmlConfiguration {
22 HtmlIndividualConfiguration(bool isLayoutTest): super(isLayoutTest); 20 HtmlIndividualConfiguration(bool isLayoutTest): super(isLayoutTest);
23 21
24 void onStart() { 22 void onStart() {
(...skipping 17 matching lines...) Expand all
42 super.onStart(); 40 super.onStart();
43 } 41 }
44 } 42 }
45 43
46 void useHtmlIndividualConfiguration([bool isLayoutTest = false]) { 44 void useHtmlIndividualConfiguration([bool isLayoutTest = false]) {
47 unittest.unittestConfiguration = isLayoutTest ? _singletonLayout : _singletonN otLayout; 45 unittest.unittestConfiguration = isLayoutTest ? _singletonLayout : _singletonN otLayout;
48 } 46 }
49 47
50 final _singletonLayout = new HtmlIndividualConfiguration(true); 48 final _singletonLayout = new HtmlIndividualConfiguration(true);
51 final _singletonNotLayout = new HtmlIndividualConfiguration(false); 49 final _singletonNotLayout = new HtmlIndividualConfiguration(false);
OLDNEW
« no previous file with comments | « pkg/unittest/lib/html_enhanced_config.dart ('k') | pkg/unittest/lib/src/configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698