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

Side by Side Diff: lib/src/runner/engine.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 | « lib/src/runner/browser/static/index.html ('k') | lib/src/runner/load_exception.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 library unittest.runner.engine; 5 library test.runner.engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import '../backend/live_test.dart'; 10 import '../backend/live_test.dart';
11 import '../backend/state.dart'; 11 import '../backend/state.dart';
12 import '../backend/suite.dart'; 12 import '../backend/suite.dart';
13 import '../utils.dart'; 13 import '../utils.dart';
14 14
15 /// An [Engine] manages a run that encompasses multiple test suites. 15 /// An [Engine] manages a run that encompasses multiple test suites.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 return new Future.microtask(liveTest.run).then((_) => new Future(() {})); 63 return new Future.microtask(liveTest.run).then((_) => new Future(() {}));
64 }).then((_) => 64 }).then((_) =>
65 liveTests.every((liveTest) => liveTest.state.result == Result.success)); 65 liveTests.every((liveTest) => liveTest.state.result == Result.success));
66 } 66 }
67 67
68 /// Signals that the caller is done paying attention to test results and the 68 /// Signals that the caller is done paying attention to test results and the
69 /// engine should release any resources it has allocated. 69 /// engine should release any resources it has allocated.
70 Future close() => 70 Future close() =>
71 Future.wait(liveTests.map((liveTest) => liveTest.close())); 71 Future.wait(liveTests.map((liveTest) => liveTest.close()));
72 } 72 }
OLDNEW
« no previous file with comments | « lib/src/runner/browser/static/index.html ('k') | lib/src/runner/load_exception.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698