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

Unified Diff: runtime/tests/vm/dart/isolate_unhandled_exception_uri_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 | « runtime/tests/vm/dart/isolate_unhandled_exception_test.dart ('k') | runtime/tests/vm/vm.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tests/vm/dart/isolate_unhandled_exception_uri_test.dart
diff --git a/runtime/tests/vm/dart/isolate_unhandled_exception_uri_test.dart b/runtime/tests/vm/dart/isolate_unhandled_exception_uri_test.dart
index da7ee50f9fe1528ca373dc94fdd7c9ac68bfe3a4..00f990421de8305fc205c3ceb0b5f43095ec2721 100644
--- a/runtime/tests/vm/dart/isolate_unhandled_exception_uri_test.dart
+++ b/runtime/tests/vm/dart/isolate_unhandled_exception_uri_test.dart
@@ -18,14 +18,15 @@ void main() {
// Send a message that will cause an ignorable exception to be thrown.
Future f = isolate_port.call('throw exception');
- f.onComplete((future) {
- Expect.equals(null, future.exception);
+ f.catchError((error) {
+ Expect.fail("Error not expected");
});
// Verify that isolate can still handle messages.
- isolate_port.call('hi').onComplete((future) {
- Expect.equals(null, future.exception);
- Expect.equals('hello', future.value);
+ isolate_port.call('hi').then((value) {
+ Expect.equals('hello', value);
+ }, onError: (error) {
+ Expect.fail("Error not expected");
});
}
« no previous file with comments | « runtime/tests/vm/dart/isolate_unhandled_exception_test.dart ('k') | runtime/tests/vm/vm.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698