Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: tools/test.dart

Issue 11230011: Make hasNext a getter instead of a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 /** 6 /**
7 * This file is the entrypoint of the dart test suite. This suite is used 7 * This file is the entrypoint of the dart test suite. This suite is used
8 * to test: 8 * to test:
9 * 9 *
10 * 1. the dart vm 10 * 1. the dart vm
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 List settings = 92 List settings =
93 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]); 93 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]);
94 if (conf['checked']) settings.add('checked'); 94 if (conf['checked']) settings.add('checked');
95 output_words.add(Strings.join(settings, '_')); 95 output_words.add(Strings.join(settings, '_'));
96 } 96 }
97 print(Strings.join(output_words, ' ')); 97 print(Strings.join(output_words, ' '));
98 } 98 }
99 99
100 var configurationIterator = configurations.iterator(); 100 var configurationIterator = configurations.iterator();
101 void enqueueConfiguration(ProcessQueue queue) { 101 void enqueueConfiguration(ProcessQueue queue) {
102 if (!configurationIterator.hasNext()) return; 102 if (!configurationIterator.hasNext) return;
103 103
104 var conf = configurationIterator.next(); 104 var conf = configurationIterator.next();
105 for (String key in selectors.getKeys()) { 105 for (String key in selectors.getKeys()) {
106 if (key == 'co19') { 106 if (key == 'co19') {
107 queue.addTestSuite(new Co19TestSuite(conf)); 107 queue.addTestSuite(new Co19TestSuite(conf));
108 } else if (conf['runtime'] == 'vm' && key == 'vm') { 108 } else if (conf['runtime'] == 'vm' && key == 'vm') {
109 // vm tests contain both cc tests (added here) and dart tests (added in 109 // vm tests contain both cc tests (added here) and dart tests (added in
110 // [TEST_SUITE_DIRECTORIES]). 110 // [TEST_SUITE_DIRECTORIES]).
111 queue.addTestSuite(new VMTestSuite(conf)); 111 queue.addTestSuite(new VMTestSuite(conf));
112 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 112 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
(...skipping 21 matching lines...) Expand all
134 progressIndicator, 134 progressIndicator,
135 startTime, 135 startTime,
136 printTiming, 136 printTiming,
137 enqueueConfiguration, 137 enqueueConfiguration,
138 () { 138 () {
139 if (!listTests) terminateHttpServer(); 139 if (!listTests) terminateHttpServer();
140 }, 140 },
141 verbose, 141 verbose,
142 listTests); 142 listTests);
143 } 143 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698