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

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

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 2 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_uri_helper.dart ('k') | runtime/vm/bootstrap_natives.h » ('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
deleted file mode 100644
index e3b9ebc0c722da28f07af612e758aaa024d9e224..0000000000000000000000000000000000000000
--- a/runtime/tests/vm/dart/isolate_unhandled_exception_uri_test.dart
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library isolate_unhandled_exception_uri_helper;
-
-import "package:expect/expect.dart";
-import 'dart:async';
-import 'dart:isolate';
-
-// Tests that isolate code in another script keeps message handling working
-// after throwing an unhandled exception, if it has a function called
-// unhandledExceptionCallback that returns true (continue handling).
-
-// Note: this test will hang if an uncaught exception isn't handled,
-// either by an error in the callback or it returning false.
-
-void main() {
- var isolate_port = spawnUri('isolate_unhandled_exception_uri_helper.dart');
-
- // Send a message that will cause an ignorable exception to be thrown.
- Future f = isolate_port.call('throw exception');
- f.catchError((error) {
- Expect.fail("Error not expected");
- });
-
- // Verify that isolate can still handle messages.
- 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_uri_helper.dart ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698