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

Unified Diff: tests/language/compile_time_constant_a_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/compile_time_constant_a_test.dart
diff --git a/tests/language/compile_time_constant_a_test.dart b/tests/language/compile_time_constant_a_test.dart
index 576939f0aec8b4279c1ebcc71400dc93af7a5142..63174a1a64fae8d857a6f3d8e499135a492c990b 100644
--- a/tests/language/compile_time_constant_a_test.dart
+++ b/tests/language/compile_time_constant_a_test.dart
@@ -4,12 +4,12 @@
import "package:expect/expect.dart";
-const m1 = const { 'a': 400 + 99 };
-const m2 = const { 'a': 499, 'b': 42 };
-const m3 = const { 'm1': m1, 'm2': m2 };
-const m4 = const { 'z': 9, 'a': 8, 'm': 7 };
-const m5 = const { '': 499 };
-const m6 = const { 'a': 499 };
+const m1 = const {'a': 400 + 99};
+const m2 = const {'a': 499, 'b': 42};
+const m3 = const {'m1': m1, 'm2': m2};
+const m4 = const {'z': 9, 'a': 8, 'm': 7};
+const m5 = const {'': 499};
+const m6 = const {'a': 499};
const m7 = const {};
bool isUnsupportedError(o) => o is UnsupportedError;
@@ -117,8 +117,6 @@ main() {
Expect.throws(() => m7.clear(), isUnsupportedError);
Expect.throws(() => m7['b'] = 42, isUnsupportedError);
Expect.throws(() => m7['a'] = 499, isUnsupportedError);
- Expect.throws(() => m7.putIfAbsent('a', () => 499),
- isUnsupportedError);
- Expect.throws(() => m7.putIfAbsent('z', () => 499),
- isUnsupportedError);
+ Expect.throws(() => m7.putIfAbsent('a', () => 499), isUnsupportedError);
+ Expect.throws(() => m7.putIfAbsent('z', () => 499), isUnsupportedError);
}

Powered by Google App Engine
This is Rietveld 408576698