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

Unified Diff: tests/compiler/dart2js/mock_compiler.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: Remove unused variable. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/identity_test.dart ('k') | tests/compiler/dart2js/pretty_parameter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index d2efbe062b1b8f1dadc6132fada43cfa0a58ef33..aab05cbc98c408fecdfd352d4619a4de7681af1c 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -202,19 +202,19 @@ void compareWarningKinds(String text, expectedWarnings, foundWarnings) {
var fail = (message) => Expect.fail('$text: $message');
Iterator<MessageKind> expected = expectedWarnings.iterator();
Iterator<WarningMessage> found = foundWarnings.iterator();
- while (expected.hasNext() && found.hasNext()) {
+ while (expected.hasNext && found.hasNext) {
Expect.equals(expected.next(), found.next().message.kind);
}
- if (expected.hasNext()) {
+ if (expected.hasNext) {
do {
print('Expected warning "${expected.next()}" did not occur');
- } while (expected.hasNext());
+ } while (expected.hasNext);
fail('Too few warnings');
}
- if (found.hasNext()) {
+ if (found.hasNext) {
do {
print('Additional warning "${found.next()}"');
- } while (found.hasNext());
+ } while (found.hasNext);
fail('Too many warnings');
}
}
« no previous file with comments | « tests/compiler/dart2js/identity_test.dart ('k') | tests/compiler/dart2js/pretty_parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698