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

Unified Diff: tests/language/map_literal_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/map_literal_test.dart
diff --git a/tests/language/map_literal_test.dart b/tests/language/map_literal_test.dart
index 48fa0d8d71b8a8720fee790a5f2ce23393ff1d40..93f1c3d563ef6de5ee7df26aafeecffb3198af91 100644
--- a/tests/language/map_literal_test.dart
+++ b/tests/language/map_literal_test.dart
@@ -27,9 +27,9 @@ class MapLiteralTest {
testLocalInit() {
// Test construction of static const map literals
- var map1 = {"a":1, "b":2};
+ var map1 = {"a": 1, "b": 2};
// Test construction of static const map literals, with numbers
- var map2 = {"1":1, "2":2};
+ var map2 = {"1": 1, "2": 2};
Expect.equals(1, map1["a"]);
Expect.equals(2, map1["b"]);
@@ -43,9 +43,9 @@ class StaticInit {
StaticInit() {}
// Test construction of static const map literals
- static const map1 = const {"a":1, "b":2};
+ static const map1 = const {"a": 1, "b": 2};
// Test construction of static const map literals, with numbers
- static const map2 = const {"1":1, "2":2};
+ static const map2 = const {"1": 1, "2": 2};
test() {
Expect.equals(1, map1["a"]);
@@ -57,12 +57,12 @@ class StaticInit {
}
class ConstInit {
-
final map1;
final map2;
- ConstInit() : this.map1 = {"a":1, "b":2}, this.map2 = {"1":1, "2":2} {
- }
+ ConstInit()
+ : this.map1 = {"a": 1, "b": 2},
+ this.map2 = {"1": 1, "2": 2} {}
test() {
Expect.equals(1, map1["a"]);

Powered by Google App Engine
This is Rietveld 408576698