Chromium Code Reviews| 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(); |
| + }); |
| } |