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

Unified Diff: tests/language/optimize_redundant_array_load_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
Index: tests/language/optimize_redundant_array_load_test.dart
diff --git a/tests/language/optimize_redundant_array_load_test.dart b/tests/language/optimize_redundant_array_load_test.dart
index 856b22520b3c95746b8fb1025ef02d47cba46714..ed3a26d3a29226f6e3c0afb942a460eb8cafbd22 100644
--- a/tests/language/optimize_redundant_array_load_test.dart
+++ b/tests/language/optimize_redundant_array_load_test.dart
@@ -7,7 +7,7 @@ import "package:expect/expect.dart";
// Test optimization of redundant array loads.
-var A = [0,2,3];
+var A = [0, 2, 3];
test1(a) {
int x = a[0];
@@ -16,12 +16,10 @@ test1(a) {
return a[0] + y + a[2];
}
-
int test2(a) {
return a[2] + a[2];
}
-
main() {
for (int i = 0; i < 20; i++) {
test1(A);

Powered by Google App Engine
This is Rietveld 408576698