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

Unified Diff: tests/language/compile_time_constant_b_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_b_test.dart
diff --git a/tests/language/compile_time_constant_b_test.dart b/tests/language/compile_time_constant_b_test.dart
index d93ad0908593762e79c9ca98541509fa92b1017e..575ed569836d3ddc4bd8381426bba09550a901e7 100644
--- a/tests/language/compile_time_constant_b_test.dart
+++ b/tests/language/compile_time_constant_b_test.dart
@@ -4,9 +4,9 @@
import "package:expect/expect.dart";
-const m1 = const { '__proto__': 400 + 99 };
-const m2 = const { 'a': 499, 'b': 42 };
-const m3 = const { '__proto__': 499 };
+const m1 = const {'__proto__': 400 + 99};
+const m2 = const {'a': 499, 'b': 42};
+const m3 = const {'__proto__': 499};
bool isUnsupportedError(o) => o is UnsupportedError;
@@ -34,8 +34,8 @@ main() {
Expect.throws(() => m1.clear(), isUnsupportedError);
Expect.throws(() => m1['b'] = 42, isUnsupportedError);
Expect.throws(() => m1['__proto__'] = 499, isUnsupportedError);
- Expect.throws(() => m1.putIfAbsent('__proto__', () => 499),
- isUnsupportedError);
+ Expect.throws(
+ () => m1.putIfAbsent('__proto__', () => 499), isUnsupportedError);
Expect.throws(() => m1.putIfAbsent('z', () => 499), isUnsupportedError);
Expect.equals(499, m2['a']);
@@ -69,8 +69,8 @@ main() {
Expect.throws(() => m2['b'] = 42, isUnsupportedError);
Expect.throws(() => m2['__proto__'] = 499, isUnsupportedError);
Expect.throws(() => m2.putIfAbsent('a', () => 499), isUnsupportedError);
- Expect.throws(() => m2.putIfAbsent('__proto__', () => 499),
- isUnsupportedError);
+ Expect.throws(
+ () => m2.putIfAbsent('__proto__', () => 499), isUnsupportedError);
Expect.throws(() => m2['a'] = 499, isUnsupportedError);
Expect.isTrue(identical(m1, m3));

Powered by Google App Engine
This is Rietveld 408576698