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

Unified Diff: utils/tests/pub/version_solver_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/tests/pub/test_pub.dart ('k') | utils/tests/pub/yaml_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/version_solver_test.dart
diff --git a/utils/tests/pub/version_solver_test.dart b/utils/tests/pub/version_solver_test.dart
index eb49d3d8236a50ad596cf8265e9e76e64d8107f8..b5b30eda77dfccd6b8fc49ea44cbfd8b0b219d3d 100644
--- a/utils/tests/pub/version_solver_test.dart
+++ b/utils/tests/pub/version_solver_test.dart
@@ -4,8 +4,8 @@
library pub_update_test;
+import 'dart:async';
import 'dart:io';
-import 'dart:isolate';
import '../../pub/lock_file.dart';
import '../../pub/package.dart';
@@ -452,10 +452,9 @@ testResolve(description, packages, {lockfile, result, Matcher error}) {
// If we aren't expecting an error, print some debugging info if we get one.
if (error == null) {
- future.handleException((ex) {
+ future.catchError((ex) {
print(ex);
print(future.stackTrace);
- return true;
});
}
});
@@ -478,7 +477,7 @@ class MockSource extends Source {
: _packages = <String, Map<Version, Package>>{};
Future<List<Version>> getVersions(String name, String description) {
- return fakeAsync(() => _packages[description].keys);
+ return fakeAsync(() => _packages[description].keys.toList());
}
Future<Pubspec> describe(PackageId id) {
« no previous file with comments | « utils/tests/pub/test_pub.dart ('k') | utils/tests/pub/yaml_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698