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

Unified Diff: tests/lib/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/mirrors/typearguments_mirror_test.dart
diff --git a/tests/lib/mirrors/typearguments_mirror_test.dart b/tests/lib/mirrors/typearguments_mirror_test.dart
index ced77b89e62f552528dd6098e5e3411938a81438..951704c65f1d7f79adbbe23d873893c44b0f1349 100644
--- a/tests/lib/mirrors/typearguments_mirror_test.dart
+++ b/tests/lib/mirrors/typearguments_mirror_test.dart
@@ -10,6 +10,7 @@ import 'stringify.dart';
import 'dart:mirrors';
class Foo<T> {}
+
class Bar<T, R> {}
main() {
@@ -35,30 +36,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