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

Side by Side Diff: runtime/tests/vm/dart/isolate_unhandled_exception_test.dart

Issue 11801008: Fix tests for VM in checked mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add missing expectAsync1 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library isolate_unhandled_exception_test; 5 library isolate_unhandled_exception_test;
6 6
7 import 'dart:async';
7 import 'dart:isolate'; 8 import 'dart:isolate';
8 9
9 // Tests that an isolate's keeps message handling working after 10 // Tests that an isolate's keeps message handling working after
10 // throwing an unhandled exception, if it was created with an 11 // throwing an unhandled exception, if it was created with an
11 // unhandled exception callback that returns true (continue handling). 12 // unhandled exception callback that returns true (continue handling).
12 // This test verifies that a callback function specified in 13 // This test verifies that a callback function specified in
13 // Isolate.spawnFunction is called. 14 // Isolate.spawnFunction is called.
14 15
15 // Note: this test will hang if an uncaught exception isn't handled, 16 // Note: this test will hang if an uncaught exception isn't handled,
16 // either by an error in the callback or it returning false. 17 // either by an error in the callback or it returning false.
(...skipping 23 matching lines...) Expand all
40 Expect.fail("Error not expected"); 41 Expect.fail("Error not expected");
41 }); 42 });
42 43
43 // Verify that isolate can still handle messages. 44 // Verify that isolate can still handle messages.
44 isolate_port.call('hi').then((value) { 45 isolate_port.call('hi').then((value) {
45 Expect.equals('hello', value); 46 Expect.equals('hello', value);
46 }, onError: (error) { 47 }, onError: (error) {
47 Expect.fail("Error not expected"); 48 Expect.fail("Error not expected");
48 }); 49 });
49 } 50 }
OLDNEW
« no previous file with comments | « runtime/lib/integers_patch.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