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

Unified Diff: runtime/tests/vm/dart/isolate_unhandled_exception_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
Index: runtime/tests/vm/dart/isolate_unhandled_exception_test.dart
diff --git a/runtime/tests/vm/dart/isolate_unhandled_exception_test.dart b/runtime/tests/vm/dart/isolate_unhandled_exception_test.dart
index 7bab730504d476f91dbb9440772e4e54a98a2157..30f36b3a772b3a64a101320c590b51a9a7880b4d 100644
--- a/runtime/tests/vm/dart/isolate_unhandled_exception_test.dart
+++ b/runtime/tests/vm/dart/isolate_unhandled_exception_test.dart
@@ -35,14 +35,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) {
+ f.catchError((error) {
// Exception wasn't ignored as it was supposed to be.
- Expect.equals(null, future.exception);
+ 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_mirror_local_test.dart ('k') | runtime/tests/vm/dart/isolate_unhandled_exception_uri_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698