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

Unified Diff: tests/lib/async/catch_errors_test.dart

Issue 14973006: Zone support for Futures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: mostly tests. Created 7 years, 7 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: tests/lib/async/catch_errors_test.dart
diff --git a/tests/compiler/dart2js_native/is_check_test.dart b/tests/lib/async/catch_errors_test.dart
similarity index 54%
copy from tests/compiler/dart2js_native/is_check_test.dart
copy to tests/lib/async/catch_errors_test.dart
index db045025b43c3a74fcc4bfe3f987650a3a66db7e..7a49555461bd9630ff83b2334ff8944d05f3d638 100644
--- a/tests/compiler/dart2js_native/is_check_test.dart
+++ b/tests/lib/async/catch_errors_test.dart
@@ -3,10 +3,17 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
-
-class A native "A" {}
+import 'dart:async';
+import 'dart:isolate';
main() {
- var a = [new Object()];
- Expect.isFalse(a[0] is A);
+ var port = new ReceivePort();
+ catchErrors(() {
+ return 'allDone';
+ }).listen((x) {
+ Expect.fail("Unexped callback");
Lasse Reichstein Nielsen 2013/05/21 08:19:57 Unexped -> Unexpected.
floitsch 2013/05/21 18:08:32 Done.
+ },
+ onDone: () {
+ port.close();
+ });
}
« tests/lib/async/catch_errors7_test.dart ('K') | « tests/lib/async/catch_errors8_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698