Chromium Code Reviews| 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 /** | 5 /** |
| 6 * Tool for identifying stale test lines. Used when updating co19. | 6 * Tool for identifying stale test lines. Used when updating co19. |
| 7 * | 7 * |
| 8 * Usage: | 8 * Usage: |
| 9 * [: ./tools/testing/bin/$OS/dart tools/testing/dart/scrub_status_file.dart :] | 9 * [: ./tools/testing/bin/$OS/dart tools/testing/dart/scrub_status_file.dart :] |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 // TODO(ahe): Consider generalizing this. | 12 // TODO(ahe): Consider generalizing this. |
| 13 | 13 |
| 14 import "dart:async"; | |
|
Bill Hesse
2013/01/09 17:06:33
What uses dart:async in this file?
kustermann
2013/01/09 18:02:25
Done.
| |
| 14 import 'dart:io'; | 15 import 'dart:io'; |
| 15 | 16 |
| 16 import 'status_file_parser.dart'; | 17 import 'status_file_parser.dart'; |
| 17 | 18 |
| 18 const List<String> CO19_STATUS_FILES = const <String>[ | 19 const List<String> CO19_STATUS_FILES = const <String>[ |
| 19 'tests/co19/co19-compiler.status', | 20 'tests/co19/co19-compiler.status', |
| 20 'tests/co19/co19-dart2dart.status', | 21 'tests/co19/co19-dart2dart.status', |
| 21 'tests/co19/co19-dart2js.status', | 22 'tests/co19/co19-dart2js.status', |
| 22 'tests/co19/co19-runtime.status']; | 23 'tests/co19/co19-runtime.status']; |
| 23 | 24 |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 38 void readStatusFile(String path) { | 39 void readStatusFile(String path) { |
| 39 var sections = []; | 40 var sections = []; |
| 40 ReadConfigurationInto(path, | 41 ReadConfigurationInto(path, |
| 41 sections, | 42 sections, |
| 42 () => onSectionsRead(path, sections)); | 43 () => onSectionsRead(path, sections)); |
| 43 } | 44 } |
| 44 | 45 |
| 45 void main() { | 46 void main() { |
| 46 CO19_STATUS_FILES.forEach(readStatusFile); | 47 CO19_STATUS_FILES.forEach(readStatusFile); |
| 47 } | 48 } |
| OLD | NEW |