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

Unified Diff: frog/tests/leg/src/TypeCheckerTest.dart

Issue 8974014: Resolve initializers in constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address 2nd round of comments. Created 9 years 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
Index: frog/tests/leg/src/TypeCheckerTest.dart
diff --git a/frog/tests/leg/src/TypeCheckerTest.dart b/frog/tests/leg/src/TypeCheckerTest.dart
index d916fb9ad3ede8c235c6a673664eba7019df2bf3..c591cb2f955abcc5bbc6db3673bc9610284497f2 100644
--- a/frog/tests/leg/src/TypeCheckerTest.dart
+++ b/frog/tests/leg/src/TypeCheckerTest.dart
@@ -416,27 +416,6 @@ analyzeIn(ClassElement classElement, String text, [expectedWarnings]) {
compiler.universe = universe;
}
-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()) {
- Expect.equals(expected.next(), found.next().message.kind);
- }
- if (expected.hasNext()) {
- do {
- print('Expected warning "${expected.next()}" did not occur');
- } while (expected.hasNext());
- fail('Too few warnings');
- }
- if (found.hasNext()) {
- do {
- print('Additional warning "${found.next()}"');
- } while (found.hasNext());
- fail('Too many warnings');
- }
-}
-
class ExtendedUniverse extends Universe {
final Universe base;

Powered by Google App Engine
This is Rietveld 408576698