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

Unified Diff: tests/lib_strong/mirrors/typearguments_mirror_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/lib_strong/mirrors/typearguments_mirror_test.dart
diff --git a/tests/lib_strong/mirrors/typearguments_mirror_test.dart b/tests/lib_strong/mirrors/typearguments_mirror_test.dart
index 3e6ec3639e0a88f64e88c08af5cc1c9a5fe0d67f..a5474d52b65913b907fe782cc3e3d60083d47f15 100644
--- a/tests/lib_strong/mirrors/typearguments_mirror_test.dart
+++ b/tests/lib_strong/mirrors/typearguments_mirror_test.dart
@@ -9,6 +9,7 @@ import 'stringify.dart';
import 'dart:mirrors';
class Foo<T> {}
+
class Bar<T, R> {}
main() {
@@ -34,30 +35,40 @@ main() {
var cm2 = reflect(new Bar<List<String>, Set>()).type;
var cm3 = reflect(new Bar<List<String>, Set<String>>()).type;
- expect('[Class(s(List) in s(dart.core), top-level),'
- ' Class(s(Set) in s(dart.core), top-level)]', cm.typeArguments);
- expect('[Class(s(List) in s(dart.core), top-level),'
- ' Class(s(Set) in s(dart.core), top-level)]', cm1.typeArguments);
- expect('[Class(s(List) in s(dart.core), top-level),'
- ' Class(s(Set) in s(dart.core), top-level)]', cm2.typeArguments);
- expect('[Class(s(List) in s(dart.core), top-level),'
- ' Class(s(Set) in s(dart.core), top-level)]', cm3.typeArguments);
+ expect(
+ '[Class(s(List) in s(dart.core), top-level),'
+ ' Class(s(Set) in s(dart.core), top-level)]',
+ cm.typeArguments);
+ expect(
+ '[Class(s(List) in s(dart.core), top-level),'
+ ' Class(s(Set) in s(dart.core), top-level)]',
+ cm1.typeArguments);
+ expect(
+ '[Class(s(List) in s(dart.core), top-level),'
+ ' Class(s(Set) in s(dart.core), top-level)]',
+ cm2.typeArguments);
+ expect(
+ '[Class(s(List) in s(dart.core), top-level),'
+ ' Class(s(Set) in s(dart.core), top-level)]',
+ cm3.typeArguments);
expect('[Class(s(String) in s(dart.core), top-level)]',
- cm1.typeArguments[1].typeArguments);
+ cm1.typeArguments[1].typeArguments);
expect('[Class(s(String) in s(dart.core), top-level)]',
- cm2.typeArguments[0].typeArguments);
+ cm2.typeArguments[0].typeArguments);
expect('[Class(s(String) in s(dart.core), top-level)]',
- cm3.typeArguments[0].typeArguments);
+ cm3.typeArguments[0].typeArguments);
expect('[Class(s(String) in s(dart.core), top-level)]',
- cm3.typeArguments[1].typeArguments);
+ cm3.typeArguments[1].typeArguments);
var cm4 = reflect(new Bar<Bar<List, Set>, String>()).type;
- expect('[Class(s(Bar) in s(lib), top-level),'
- ' Class(s(String) in s(dart.core), top-level)]',
- cm4.typeArguments);
- expect('[Class(s(List) in s(dart.core), top-level), '
- 'Class(s(Set) in s(dart.core), top-level)]',
- cm4.typeArguments[0].typeArguments);
+ expect(
+ '[Class(s(Bar) in s(lib), top-level),'
+ ' Class(s(String) in s(dart.core), top-level)]',
+ cm4.typeArguments);
+ expect(
+ '[Class(s(List) in s(dart.core), top-level), '
+ 'Class(s(Set) in s(dart.core), top-level)]',
+ cm4.typeArguments[0].typeArguments);
}

Powered by Google App Engine
This is Rietveld 408576698