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

Unified Diff: tests/vm/dart/isolate_unhandled_exception_uri_test.dart

Issue 11596002: Changed the test a bit to ensure dart:io is not included as dartium cannot import dart:io (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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 | « tests/vm/dart/isolate_unhandled_exception_uri_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/vm/dart/isolate_unhandled_exception_uri_test.dart
===================================================================
--- tests/vm/dart/isolate_unhandled_exception_uri_test.dart (revision 16198)
+++ tests/vm/dart/isolate_unhandled_exception_uri_test.dart (working copy)
@@ -5,7 +5,6 @@
library isolate_unhandled_exception_uri_helper;
import 'dart:isolate';
-import 'dart:io';
// Tests that isolate code in another script keeps message handling working
// after throwing an unhandled exception, if it has a function called
@@ -20,23 +19,13 @@
// Send a message that will cause an ignorable exception to be thrown.
Future f = isolate_port.call('throw exception');
f.onComplete((future) {
- if (future.exception != null) {
- // Exception wasn't ignored as it was supposed to be.
- print('failed handling exception');
- exit(1);
- }
+ Expect.equals(null, future.exception);
});
// Verify that isolate can still handle messages.
isolate_port.call('hi').onComplete((future) {
- if (future.exception != null) {
- print('unhandled exception: ${future.exception}');
- exit(1);
- }
- if (future.value != 'hello') {
- print('unexpected response: ${future.value}');
- exit(1);
- }
- exit(0);
+ Expect.equals(null, future.exception);
+ Expect.equals('hello', future.value);
});
+
}
« no previous file with comments | « tests/vm/dart/isolate_unhandled_exception_uri_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698