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

Unified Diff: tests/language_strong/metadata_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_strong/metadata_test.dart
diff --git a/tests/language_strong/metadata_test.dart b/tests/language_strong/metadata_test.dart
index 29f11dcb658d9d2f4c9c7b720febdbe5f85a215b..c8cb7d3c2b8c8678a12dd1b765ea70f9b95d39f8 100644
--- a/tests/language_strong/metadata_test.dart
+++ b/tests/language_strong/metadata_test.dart
@@ -6,6 +6,7 @@
// test cases with illegal metadata annotations.
library metadata_test.dart;
+
import "package:expect/expect.dart";
import "metadata_lib.dart" as Meta;
@@ -19,17 +20,23 @@ const meta2 = const Tag("meta2");
const extern = const Tag("external");
-@meta1 var topLevelVar;
-@Meta.Alien.unspecified() List unknownUnknowns;
+@meta1
+var topLevelVar;
+@Meta.Alien.unspecified()
+List unknownUnknowns;
-@meta1 typedef int DingDong<@meta2 T>(@meta1 event);
+@meta1
+typedef int DingDong<@meta2 T>(@meta1 event);
-@meta1 class A <@Tag("typeParam") T> {
- @meta1 @meta2
+@meta1
+class A<@Tag("typeParam") T> {
+ @meta1
+ @meta2
static String staticField;
- @Meta.Alien("ET") int foo(@meta1 bool fool, {@meta1 @Tag("opt") x: 100}) {
- @meta2 @meta1 g() => 10;
+ @Meta.Alien("ET")
+ int foo(@meta1 bool fool, {@meta1 @Tag("opt") x: 100}) {
+ g() => 10;
return x * g();
}
@@ -37,13 +44,19 @@ const extern = const Tag("external");
List<int> getNextWeeksLottoNumbers() => [1, 2, 3, 4, 5, 6];
}
-@meta1 main() {
- @meta1 var a = new A();
+@meta1
+main() {
+ @meta1
+ var a = new A();
Expect.equals(0, a.foo(false, x: 0));
- for (@Tag("loopvar") int i = 0; i < 10; i++) {
+ for (@Tag("loopvar")
+ int i = 0;
+ i < 10;
+ i++) {
// Do something.
}
- @meta1 var s = r'This is a raw \\ string.';
+ @meta1
+ var s = r'This is a raw \\ string.';
}

Powered by Google App Engine
This is Rietveld 408576698