Chromium Code Reviews| Index: tools/testing/dart/multitest.dart |
| diff --git a/tools/testing/dart/multitest.dart b/tools/testing/dart/multitest.dart |
| index ca621750e97b19f3f65414e1ca37132f1c129e8b..ac6967c29cb8fb6c015feabc886372f6c4628ac5 100644 |
| --- a/tools/testing/dart/multitest.dart |
| +++ b/tools/testing/dart/multitest.dart |
| @@ -4,6 +4,7 @@ |
| library multitest; |
| +import "dart:async"; |
| import "dart:io"; |
| import "test_suite.dart"; |
| @@ -142,11 +143,11 @@ class _Annotation { |
| return null; |
| } |
| var annotation = new _Annotation(); |
| - var parts = line.split('///')[1].split(':').map((s) => s.trim()); |
| + var parts = line.split('///')[1].split(':').mappedBy((s) => s.trim()); |
|
Bill Hesse
2013/01/09 17:06:33
This returns an iterable, so either use the iterab
kustermann
2013/01/09 18:02:25
Done.
|
| annotation.key = parts[0]; |
| annotation.rest = parts[1]; |
| annotation.outcomesList = annotation.rest.split(',') |
| - .map((s) => s.trim()); |
| + .mappedBy((s) => s.trim()); |
| return annotation; |
|
Bill Hesse
2013/01/09 17:06:33
toList.
kustermann
2013/01/09 18:02:25
Done.
|
| } |
| } |
| @@ -214,7 +215,7 @@ Future doMultitest(Path filePath, String outputDir, Path suiteDir, |
| } |
| // Wait until all imports are copied before scheduling test cases. |
| - return Futures.wait(futureCopies).transform((_) { |
| + return Futures.wait(futureCopies).then((_) { |
| String baseFilename = filePath.filenameWithoutExtension; |
| for (String key in tests.keys) { |
| final Path multitestFilename = |