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

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

Issue 10679005: Initial version of mocking support. There is still quite a bit of (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | « lib/unittest/mock.dart ('k') | tests/lib/unittest/test_utils.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 * lib/unittest/unittest.dart. 9 * lib/unittest/unittest.dart.
10 * 10 *
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 #source('collection_matchers.dart'); 141 #source('collection_matchers.dart');
142 #source('config.dart'); 142 #source('config.dart');
143 #source('core_matchers.dart'); 143 #source('core_matchers.dart');
144 #source('description.dart'); 144 #source('description.dart');
145 #source('expect.dart'); 145 #source('expect.dart');
146 #source('future_matchers.dart'); 146 #source('future_matchers.dart');
147 #source('interfaces.dart'); 147 #source('interfaces.dart');
148 #source('map_matchers.dart'); 148 #source('map_matchers.dart');
149 #source('matcher.dart'); 149 #source('matcher.dart');
150 #source('mock.dart');
150 #source('numeric_matchers.dart'); 151 #source('numeric_matchers.dart');
151 #source('operator_matchers.dart'); 152 #source('operator_matchers.dart');
152 #source('string_matchers.dart'); 153 #source('string_matchers.dart');
153 #source('test_case.dart'); 154 #source('test_case.dart');
154 155
155 /** [Configuration] used by the unittest library. */ 156 /** [Configuration] used by the unittest library. */
156 Configuration _config = null; 157 Configuration _config = null;
157 158
158 /** 159 /**
159 * Set the [Configuration] used by the unittest library. Returns any 160 * Set the [Configuration] used by the unittest library. Returns any
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 _config.onInit(); 768 _config.onInit();
768 769
769 // Immediately queue the suite up. It will run after a timeout (i.e. after 770 // Immediately queue the suite up. It will run after a timeout (i.e. after
770 // main() has returned). 771 // main() has returned).
771 _defer(_runTests); 772 _defer(_runTests);
772 } 773 }
773 774
774 /** Signature for a test function. */ 775 /** Signature for a test function. */
775 typedef void TestFunction(); 776 typedef void TestFunction();
776 777
OLDNEW
« no previous file with comments | « lib/unittest/mock.dart ('k') | tests/lib/unittest/test_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698