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

Side by Side Diff: test/backend/declarer_test.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 | « pubspec.yaml ('k') | test/backend/invoker_test.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) 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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:unittest/src/backend/declarer.dart'; 7 import 'package:test/src/backend/declarer.dart';
8 import 'package:unittest/src/backend/suite.dart'; 8 import 'package:test/src/backend/suite.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:test/test.dart';
10 10
11 Declarer _declarer; 11 Declarer _declarer;
12 Suite _suite; 12 Suite _suite;
13 13
14 void main() { 14 void main() {
15 setUp(() { 15 setUp(() {
16 _declarer = new Declarer(); 16 _declarer = new Declarer();
17 _suite = new Suite([]); 17 _suite = new Suite([]);
18 }); 18 });
19 19
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 /// Runs the test at [index] defined on [_declarer]. 317 /// Runs the test at [index] defined on [_declarer].
318 /// 318 ///
319 /// This automatically sets up an `onError` listener to ensure that the test 319 /// This automatically sets up an `onError` listener to ensure that the test
320 /// doesn't throw any invisible exceptions. 320 /// doesn't throw any invisible exceptions.
321 Future _runTest(int index) { 321 Future _runTest(int index) {
322 var liveTest = _declarer.tests[index].load(_suite); 322 var liveTest = _declarer.tests[index].load(_suite);
323 liveTest.onError.listen(expectAsync((_) {}, 323 liveTest.onError.listen(expectAsync((_) {},
324 count: 0, reason: "No errors expected for test #$index.")); 324 count: 0, reason: "No errors expected for test #$index."));
325 return liveTest.run(); 325 return liveTest.run();
326 } 326 }
OLDNEW
« no previous file with comments | « pubspec.yaml ('k') | test/backend/invoker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698