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

Unified Diff: tests/corelib/indexed_list_access_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/corelib/indexed_list_access_test.dart
diff --git a/tests/corelib/indexed_list_access_test.dart b/tests/corelib/indexed_list_access_test.dart
index 4cbc64517a3da1a700b9602596dddbbcd0cf1fbf..b182eeff917b4a17f103af7fd03a6eaf17608257 100644
--- a/tests/corelib/indexed_list_access_test.dart
+++ b/tests/corelib/indexed_list_access_test.dart
@@ -15,7 +15,6 @@ main() {
checkList(growable);
}
-
checkList(var list) {
// Check unoptimized.
Expect.isFalse(checkCatch(getIt, list, 1));
@@ -24,8 +23,8 @@ checkList(var list) {
Expect.isTrue(checkCatch(putIt, list, "hi"));
// Optimize 'getIt' and 'putIt'.
for (int i = 0; i < 2000; i++) {
- putIt(list, 1);
- getIt(list, 1);
+ putIt(list, 1);
+ getIt(list, 1);
}
Expect.isTrue(checkCatch(getIt, list, "hi"));
Expect.isTrue(checkCatch(putIt, list, "hi"));
@@ -37,17 +36,15 @@ checkCatch(var f, var list, var index) {
} on ArgumentError catch (e) {
return true;
} on TypeError catch (t) {
- return true; // thrown in type checked mode.
+ return true; // thrown in type checked mode.
}
return false;
}
-
getIt(var a, var i) {
return a[i];
}
-
putIt(var a, var i) {
a[i] = null;
}

Powered by Google App Engine
This is Rietveld 408576698