Index: tests/standalone/io/test_runner_exit_code_test.dart |
diff --git a/tests/standalone/io/test_runner_exit_code_test.dart b/tests/standalone/io/test_runner_exit_code_test.dart |
index 34e9d0b8f920a3acfe67726920dd3d575206618e..02d4f50d773e84876b62f267b42f9ac63433e3b8 100644 |
--- a/tests/standalone/io/test_runner_exit_code_test.dart |
+++ b/tests/standalone/io/test_runner_exit_code_test.dart |
@@ -5,8 +5,8 @@ |
import "dart:io"; |
void runTests(String executable, String script, Iterator iterator) { |
- if (iterator.hasNext) { |
- var progressIndicator = iterator.next(); |
+ if (iterator.moveNext()) { |
+ var progressIndicator = iterator.current; |
Process.run(executable, [script, progressIndicator]).then((result) { |
Expect.equals(1, result.exitCode); |
if (progressIndicator == 'buildbot') { |
@@ -26,6 +26,6 @@ main() { |
var executable = new Options().executable; |
var progressTypes = ['compact', 'color', 'line', 'verbose', |
'status', 'buildbot']; |
- var iterator = progressTypes.iterator(); |
+ var iterator = progressTypes.iterator; |
runTests(executable, script, iterator); |
} |