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

Side by Side Diff: tools/test-runtime.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 // TODO(ager): Get rid of this version of test.dart when we don't have 6 // TODO(ager): Get rid of this version of test.dart when we don't have
7 // to worry about the special runtime checkout anymore. 7 // to worry about the special runtime checkout anymore.
8 // This file is identical to test.dart with test suites in the 8 // This file is identical to test.dart with test suites in the
9 // directories samples, client, compiler, and utils removed. 9 // directories samples, client, compiler, and utils removed.
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 List settings = 61 List settings =
62 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]); 62 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]);
63 if (conf['checked']) settings.add('checked'); 63 if (conf['checked']) settings.add('checked');
64 output_words.add(Strings.join(settings, '_')); 64 output_words.add(Strings.join(settings, '_'));
65 } 65 }
66 print(Strings.join(output_words, ' ')); 66 print(Strings.join(output_words, ' '));
67 } 67 }
68 68
69 var configurationIterator = configurations.iterator(); 69 var configurationIterator = configurations.iterator();
70 void enqueueConfiguration(ProcessQueue queue) { 70 void enqueueConfiguration(ProcessQueue queue) {
71 if (!configurationIterator.hasNext()) return; 71 if (!configurationIterator.hasNext) return;
72 72
73 var conf = configurationIterator.next(); 73 var conf = configurationIterator.next();
74 if (selectors.containsKey('co19')) { 74 if (selectors.containsKey('co19')) {
75 queue.addTestSuite(new Co19TestSuite(conf)); 75 queue.addTestSuite(new Co19TestSuite(conf));
76 } 76 }
77 if (conf['runtime'] == 'vm' && selectors.containsKey('vm')) { 77 if (conf['runtime'] == 'vm' && selectors.containsKey('vm')) {
78 // vm tests contain both cc tests (added here) and dart tests (added in 78 // vm tests contain both cc tests (added here) and dart tests (added in
79 // [TEST_SUITE_DIRECTORIES]). 79 // [TEST_SUITE_DIRECTORIES]).
80 queue.addTestSuite(new VMTestSuite(conf)); 80 queue.addTestSuite(new VMTestSuite(conf));
81 } 81 }
(...skipping 16 matching lines...) Expand all
98 new ProcessQueue( 98 new ProcessQueue(
99 maxProcesses, 99 maxProcesses,
100 progressIndicator, 100 progressIndicator,
101 startTime, 101 startTime,
102 printTiming, 102 printTiming,
103 enqueueConfiguration, 103 enqueueConfiguration,
104 () => terminateHttpServer(), 104 () => terminateHttpServer(),
105 verbose, 105 verbose,
106 listTests); 106 listTests);
107 } 107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698