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

Unified Diff: pkg/dev_compiler/test/closure/closure_annotation_test.dart

Issue 2752163002: Format all dart dev compiler files (Closed)
Patch Set: Created 3 years, 9 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: pkg/dev_compiler/test/closure/closure_annotation_test.dart
diff --git a/pkg/dev_compiler/test/closure/closure_annotation_test.dart b/pkg/dev_compiler/test/closure/closure_annotation_test.dart
index cf4ae6aca8be81f3169d8a4400736bf01b9e649c..7c3ae32f66e1543cb853fa888c56cd05151c80c4 100644
--- a/pkg/dev_compiler/test/closure/closure_annotation_test.dart
+++ b/pkg/dev_compiler/test/closure/closure_annotation_test.dart
@@ -16,8 +16,8 @@ void main() {
var numberType = new TypeRef.number();
var stringType = new TypeRef.string();
var booleanType = new TypeRef.boolean();
- var fooType = new TypeRef.qualified(
- [new Identifier("foo"), new Identifier("Foo")]);
+ var fooType =
+ new TypeRef.qualified([new Identifier("foo"), new Identifier("Foo")]);
var barType = new TypeRef.named("Bar");
var bazType = new TypeRef.named("Baz");
var bamType = new TypeRef.named("Bam");
@@ -39,9 +39,10 @@ void main() {
});
test('gives multiple line comment when it it does not fit on one line', () {
- expect(new ClosureAnnotation(
- returnType: stringType, paramTypes: {'foo': numberType})
- .toString(),
+ expect(
+ new ClosureAnnotation(
+ returnType: stringType,
+ paramTypes: {'foo': numberType}).toString(),
"/**\n"
" * @param {number} foo\n"
" * @return {string}\n"
@@ -49,9 +50,10 @@ void main() {
});
test('inserts indentation', () {
- expect(new ClosureAnnotation(
- returnType: stringType, paramTypes: {'foo': numberType})
- .toString(" "),
+ expect(
+ new ClosureAnnotation(
+ returnType: stringType,
+ paramTypes: {'foo': numberType}).toString(" "),
"/**\n" // No indent on first line.
" * @param {number} foo\n"
" * @return {string}\n"
@@ -75,18 +77,21 @@ void main() {
expect(
new ClosureAnnotation(type: stringType, isProtected: true).toString(),
"/** @protected {string} */");
- expect(new ClosureAnnotation(
- type: stringType,
- isPrivate: true,
- isConst: true,
- isFinal: true,
- isProtected: true,
- isTypedef: true).toString(),
+ expect(
+ new ClosureAnnotation(
+ type: stringType,
+ isPrivate: true,
+ isConst: true,
+ isFinal: true,
+ isProtected: true,
+ isTypedef: true)
+ .toString(),
"/** @private @protected @final @const @typedef {string} */");
});
test('supports a full constructor annotation', () {
- expect(new ClosureAnnotation(
+ expect(
+ new ClosureAnnotation(
returnType: booleanType,
throwsType: bamType,
thisType: fooType,
« no previous file with comments | « pkg/dev_compiler/lib/src/js_ast/type_printer.dart ('k') | pkg/dev_compiler/test/closure/closure_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698