| Index: tools/test.dart
|
| diff --git a/tools/test.dart b/tools/test.dart
|
| index 8d7388c0a2e29a4b6d4e39133614263e7575d189..77e4158f88d5f3979a3cf7dcd58b7dcf55a6cd48 100755
|
| --- a/tools/test.dart
|
| +++ b/tools/test.dart
|
| @@ -96,19 +96,19 @@ main() {
|
| List output_words = configurations.length > 1 ?
|
| ['Test configurations:'] : ['Test configuration:'];
|
| for (Map conf in configurations) {
|
| - List settings =
|
| - ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]);
|
| + List settings = ['compiler', 'runtime', 'mode', 'arch']
|
| + .mappedBy((name) => conf[name]).toList();
|
| if (conf['checked']) settings.add('checked');
|
| output_words.add(Strings.join(settings, '_'));
|
| }
|
| print(Strings.join(output_words, ' '));
|
| }
|
|
|
| - var configurationIterator = configurations.iterator();
|
| + var configurationIterator = configurations.iterator;
|
| void enqueueConfiguration(ProcessQueue queue) {
|
| - if (!configurationIterator.hasNext) return;
|
| + if (!configurationIterator.moveNext()) return;
|
|
|
| - var conf = configurationIterator.next();
|
| + var conf = configurationIterator.current;
|
| for (String key in selectors.keys) {
|
| if (key == 'co19') {
|
| queue.addTestSuite(new Co19TestSuite(conf));
|
| @@ -136,7 +136,7 @@ main() {
|
| // test that needs to load resources from the repo over http.
|
| if (!listTests) {
|
| // Only start the server if we are running browser tests.
|
| - var runningBrowserTests = configurations.some((config) {
|
| + var runningBrowserTests = configurations.any((config) {
|
| return TestUtils.isBrowserRuntime(config['runtime']);
|
| });
|
| if (runningBrowserTests) startHttpServer('127.0.0.1', 9876);
|
|
|