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

Unified Diff: tests/utils/recursive_import_test.dart

Issue 12662002: Fix bot breaks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/recursive_import_test.dart
diff --git a/tests/utils/recursive_import_test.dart b/tests/utils/recursive_import_test.dart
index 62bf3620ff51b4761cf9b9a96f1e1a7906e794d6..dd87128fb52b6b998b3a790809fb271642c065b6 100644
--- a/tests/utils/recursive_import_test.dart
+++ b/tests/utils/recursive_import_test.dart
@@ -85,6 +85,7 @@ main() {
int warningCount = 0;
int errorCount = 0;
+ int infoCount = 0;
void handler(Uri uri, int begin, int end, String message, Diagnostic kind) {
if (uri != null) {
// print('$uri:$begin:$end: $kind: $message');
@@ -93,6 +94,8 @@ main() {
warningCount++;
} else if (kind == Diagnostic.ERROR) {
errorCount++;
+ } else if (kind == Diagnostic.INFO || kind == Diagnostic.VERBOSE_INFO){
+ infoCount++;
} else {
throw kind;
}
@@ -107,10 +110,11 @@ main() {
result.then((String code) {
Expect.isNull(code);
Expect.isTrue(10 < count);
- // Two warnings for each time RECURSIVE_MAIN is read, except the
- // first time.
- Expect.equals(2 * (count - 1), warningCount);
+ Expect.equals(0, warningCount);
Expect.equals(1, errorCount);
+ // Two infos for each time RECURSIVE_MAIN is read, except the
+ // first time.
+ Expect.equals(2 * (count - 1), infoCount);
}, onError: (AsyncError e) {
throw 'Compilation failed';
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698