| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 /// Helper application to run `closed_world2_test` on multiple files or | 5 /// Helper application to run `closed_world2_test` on multiple files or |
| 6 /// directories. | 6 /// directories. |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 await testFile(new File(path)); | 25 await testFile(new File(path)); |
| 26 } else { | 26 } else { |
| 27 print("$arg doesn't exist"); | 27 print("$arg doesn't exist"); |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| 32 Future testFile(File file) async { | 32 Future testFile(File file) async { |
| 33 print('===================================================================='); | 33 print('===================================================================='); |
| 34 print('testing ${file.path}'); | 34 print('testing ${file.path}'); |
| 35 await mainInternal([file.path]); | 35 try { |
| 36 await mainInternal([file.path], skipWarnings: true, skipErrors: true); |
| 37 } catch (e, s) { |
| 38 print('$e:\n$s'); |
| 39 } |
| 36 } | 40 } |
| OLD | NEW |