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

Unified Diff: dart/tests/try/web/program_result.dart

Issue 818713002: More tests of incremental compilation involving multiple libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
« no previous file with comments | « dart/tests/try/web/incremental_compilation_update_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/try/web/program_result.dart
diff --git a/dart/tests/try/web/program_result.dart b/dart/tests/try/web/program_result.dart
index 1ecc05a7f6177517ba129e57ce25bb5a0ccb6694..b8f86cbb12b6329c4a5c76cac0ec76408eb77be5 100644
--- a/dart/tests/try/web/program_result.dart
+++ b/dart/tests/try/web/program_result.dart
@@ -112,18 +112,16 @@ class EncodedResult {
"(${updateCount} patches, ${expectations.length} expectations).");
}
List<ProgramResult> result = new List<ProgramResult>(updateCount);
- int i = 0;
- for (String name in fileMap.keys) {
+ for (int i = 0; i < updateCount; i++) {
ProgramExpectation expectation = decodeExpectation(expectations[i]);
result[i] = new ProgramResult(
<String, String>{},
expectation.messages,
compileUpdatesShouldThrow: expectation.compileUpdatesShouldThrow);
- i++;
}
for (String name in fileMap.keys) {
- for (int j = 0; j < updateCount; j++) {
- result[j].code[name] = fileMap[name][j];
+ for (int i = 0; i < updateCount; i++) {
+ result[i].code[name] = fileMap[name][i];
}
}
return result;
« no previous file with comments | « dart/tests/try/web/incremental_compilation_update_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698