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

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

Issue 10911318: Revert "Make unittest follow the new package layout." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/test_case.dart ('k') | pkg/unittest/vm_config.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) 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 library for writing dart unit tests. 6 * A library for writing dart unit tests.
7 * 7 *
8 * To import this library, specify the relative path to 8 * To import this library, specify the relative path to
9 * pkg/unittest/lib/unittest.dart. 9 * pkg/unittest/unittest.dart.
10 * 10 *
11 * ##Concepts## 11 * ##Concepts##
12 * 12 *
13 * * Tests: Tests are specified via the top-level function [test], they can be 13 * * Tests: Tests are specified via the top-level function [test], they can be
14 * organized together using [group]. 14 * organized together using [group].
15 * * Checks: Test expectations can be specified via [expect] 15 * * Checks: Test expectations can be specified via [expect]
16 * * Matchers: [expect] assertions are written declaratively using [Matcher]s 16 * * Matchers: [expect] assertions are written declaratively using [Matcher]s
17 * * Configuration: The framework can be adapted by calling [configure] with a 17 * * Configuration: The framework can be adapted by calling [configure] with a
18 * [Configuration]. Common configurations can be found in this package 18 * [Configuration]. Common configurations can be found in this package
19 * under: 'dom\_config.dart' (deprecated), 'html\_config.dart' (for running 19 * under: 'dom\_config.dart' (deprecated), 'html\_config.dart' (for running
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 * // indicate that the asynchronous callback was invoked. 131 * // indicate that the asynchronous callback was invoked.
132 * async.complete(); 132 * async.complete();
133 * }), 0); 133 * }), 0);
134 * }); 134 * });
135 * 135 *
136 */ 136 */
137 #library('unittest'); 137 #library('unittest');
138 138
139 #import('dart:isolate'); 139 #import('dart:isolate');
140 140
141 #source('src/collection_matchers.dart'); 141 #source('collection_matchers.dart');
142 #source('src/config.dart'); 142 #source('config.dart');
143 #source('src/core_matchers.dart'); 143 #source('core_matchers.dart');
144 #source('src/description.dart'); 144 #source('description.dart');
145 #source('src/expect.dart'); 145 #source('expect.dart');
146 #source('src/future_matchers.dart'); 146 #source('future_matchers.dart');
147 #source('src/interfaces.dart'); 147 #source('interfaces.dart');
148 #source('src/map_matchers.dart'); 148 #source('map_matchers.dart');
149 #source('src/matcher.dart'); 149 #source('matcher.dart');
150 #source('src/mock.dart'); 150 #source('mock.dart');
151 #source('src/numeric_matchers.dart'); 151 #source('numeric_matchers.dart');
152 #source('src/operator_matchers.dart'); 152 #source('operator_matchers.dart');
153 #source('src/string_matchers.dart'); 153 #source('string_matchers.dart');
154 #source('src/test_case.dart'); 154 #source('test_case.dart');
155 155
156 /** [Configuration] used by the unittest library. */ 156 /** [Configuration] used by the unittest library. */
157 Configuration _config = null; 157 Configuration _config = null;
158 158
159 Configuration get config => _config; 159 Configuration get config => _config;
160 160
161 /** 161 /**
162 * Set the [Configuration] used by the unittest library. Returns any 162 * Set the [Configuration] used by the unittest library. Returns any
163 * previous configuration. 163 * previous configuration.
164 * TODO: consider deprecating in favor of a setter now we have a getter. 164 * TODO: consider deprecating in favor of a setter now we have a getter.
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 } 865 }
866 866
867 /** Enable a test by ID. */ 867 /** Enable a test by ID. */
868 void enableTest(int testId) => _setTestEnabledState(testId, true); 868 void enableTest(int testId) => _setTestEnabledState(testId, true);
869 869
870 /** Disable a test by ID. */ 870 /** Disable a test by ID. */
871 void disableTest(int testId) => _setTestEnabledState(testId, false); 871 void disableTest(int testId) => _setTestEnabledState(testId, false);
872 872
873 /** Signature for a test function. */ 873 /** Signature for a test function. */
874 typedef void TestFunction(); 874 typedef void TestFunction();
OLDNEW
« no previous file with comments | « pkg/unittest/test_case.dart ('k') | pkg/unittest/vm_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698