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

Unified Diff: tests/corelib_strong/list_for_each_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_strong/list_for_each_test.dart
diff --git a/tests/corelib_strong/list_for_each_test.dart b/tests/corelib_strong/list_for_each_test.dart
index effe6da8098de3a9ad2f6c898522d740fe6a9c3a..b59a2d730707f36263917c9f19ab6f227eab6077 100644
--- a/tests/corelib_strong/list_for_each_test.dart
+++ b/tests/corelib_strong/list_for_each_test.dart
@@ -9,9 +9,15 @@ class MyList extends ListBase {
List list;
MyList(this.list);
get length => list.length;
- set length(value) { list.length = value; }
+ set length(value) {
+ list.length = value;
+ }
+
operator [](index) => list[index];
- operator []=(index, val) { list[index] = val; }
+ operator []=(index, val) {
+ list[index] = val;
+ }
+
toString() => list.toString();
}
@@ -25,7 +31,7 @@ void testWithoutModification(List list) {
void testWithModification(List list) {
if (list.isEmpty) return;
Expect.throws(() => list.forEach((_) => list.add(0)),
- (e) => e is ConcurrentModificationError);
+ (e) => e is ConcurrentModificationError);
}
main() {

Powered by Google App Engine
This is Rietveld 408576698