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 // Process test program to errors during startup of the process. | 5 // Process test program to errors during startup of the process. |
6 | 6 |
7 #import("dart:io"); | 7 #import("dart:io"); |
8 | 8 |
9 testStartError() { | 9 testStartError() { |
10 Process process = | 10 Process process = |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 process.onError = (ProcessException e) { | 33 process.onError = (ProcessException e) { |
34 Expect.equals(2, e.errorCode, e.toString()); | 34 Expect.equals(2, e.errorCode, e.toString()); |
35 }; | 35 }; |
36 } | 36 } |
37 | 37 |
38 main() { | 38 main() { |
39 testStartError(); | 39 testStartError(); |
40 testRunError(); | 40 testRunError(); |
41 } | 41 } |
OLD | NEW |