OLD | NEW |
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 import 'dart:io'; | 5 import 'dart:io'; |
6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
7 | 7 |
8 main() { | 8 main() { |
9 ReceivePort port = new ReceivePort(); | 9 ReceivePort port = new ReceivePort(); |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 }); | 41 }); |
42 }); | 42 }); |
43 }); | 43 }); |
44 }); | 44 }); |
45 }); | 45 }); |
46 }); | 46 }); |
47 }); | 47 }); |
48 }); | 48 }); |
49 }); | 49 }); |
50 }); | 50 }); |
| 51 }).catchError((e) { |
| 52 port.close(); |
| 53 Expect.fail("File not found"); |
51 }); | 54 }); |
52 } | 55 } |
OLD | NEW |