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

Side by Side Diff: test/utils.dart

Issue 1053443002: Rename the package to "test". (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 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
« no previous file with comments | « test/util/string_literal_iterator_test.dart ('k') | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library unittest.test.utils; 5 library test.test.utils;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:unittest/src/backend/invoker.dart'; 10 import 'package:test/src/backend/invoker.dart';
11 import 'package:unittest/src/backend/live_test.dart'; 11 import 'package:test/src/backend/live_test.dart';
12 import 'package:unittest/src/backend/metadata.dart'; 12 import 'package:test/src/backend/metadata.dart';
13 import 'package:unittest/src/backend/state.dart'; 13 import 'package:test/src/backend/state.dart';
14 import 'package:unittest/src/backend/suite.dart'; 14 import 'package:test/src/backend/suite.dart';
15 import 'package:unittest/src/runner/load_exception.dart'; 15 import 'package:test/src/runner/load_exception.dart';
16 import 'package:unittest/src/util/remote_exception.dart'; 16 import 'package:test/src/util/remote_exception.dart';
17 import 'package:unittest/unittest.dart'; 17 import 'package:test/test.dart';
18 18
19 /// The string representation of an untyped closure with no arguments. 19 /// The string representation of an untyped closure with no arguments.
20 /// 20 ///
21 /// This differs between dart2js and the VM. 21 /// This differs between dart2js and the VM.
22 final String closureString = (() {}).toString(); 22 final String closureString = (() {}).toString();
23 23
24 // The last state change detected via [expectStates]. 24 // The last state change detected via [expectStates].
25 State lastState; 25 State lastState;
26 26
27 /// Asserts that exactly [states] will be emitted via [liveTest.onStateChange]. 27 /// Asserts that exactly [states] will be emitted via [liveTest.onStateChange].
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 }); 238 });
239 }); 239 });
240 240
241 return liveTest.run().then((_) { 241 return liveTest.run().then((_) {
242 expectTestPassed(liveTest); 242 expectTestPassed(liveTest);
243 // Ensure that the outer test doesn't complete until the inner future 243 // Ensure that the outer test doesn't complete until the inner future
244 // completes. 244 // completes.
245 return future; 245 return future;
246 }); 246 });
247 } 247 }
OLDNEW
« no previous file with comments | « test/util/string_literal_iterator_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698