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

Unified Diff: test/io_test.dart

Issue 2181743002: Always split collections and argument lists with trailing commas. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Revise. Created 4 years, 5 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
« no previous file with comments | « lib/src/source_visitor.dart ('k') | test/regression/0200/0223.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/io_test.dart
diff --git a/test/io_test.dart b/test/io_test.dart
index 64acf4caf0b98172f5aec79e271a08f75b1bdc58..695dd4de60fb8889d9190b051e94519e878f92c8 100644
--- a/test/io_test.dart
+++ b/test/io_test.dart
@@ -25,7 +25,9 @@ void main() {
new FormatterOptions(OutputReporter.overwrite, followLinks: true);
test('handles directory ending in ".dart"', () {
- d.dir('code.dart', [d.file('a.dart', unformattedSource),]).create();
+ d.dir('code.dart', [
+ d.file('a.dart', unformattedSource),
+ ]).create();
schedule(() {
var dir = new Directory(d.defaultRoot);
@@ -97,9 +99,13 @@ void main() {
});
test("doesn't follow directory symlinks by default", () {
- d.dir('code', [d.file('a.dart', unformattedSource),]).create();
+ d.dir('code', [
+ d.file('a.dart', unformattedSource),
+ ]).create();
- d.dir('target_dir', [d.file('b.dart', unformattedSource),]).create();
+ d.dir('target_dir', [
+ d.file('b.dart', unformattedSource),
+ ]).create();
schedule(() {
// Create a link to the target directory in the code directory.
@@ -114,14 +120,20 @@ void main() {
d.dir('code', [
d.file('a.dart', formattedSource),
- d.dir('linked_dir', [d.file('b.dart', unformattedSource),])
+ d.dir('linked_dir', [
+ d.file('b.dart', unformattedSource),
+ ])
]).validate();
});
test("follows directory symlinks when 'followLinks' is true", () {
- d.dir('code', [d.file('a.dart', unformattedSource),]).create();
+ d.dir('code', [
+ d.file('a.dart', unformattedSource),
+ ]).create();
- d.dir('target_dir', [d.file('b.dart', unformattedSource),]).create();
+ d.dir('target_dir', [
+ d.file('b.dart', unformattedSource),
+ ]).create();
schedule(() {
// Create a link to the target directory in the code directory.
@@ -136,7 +148,9 @@ void main() {
d.dir('code', [
d.file('a.dart', formattedSource),
- d.dir('linked_dir', [d.file('b.dart', formattedSource),])
+ d.dir('linked_dir', [
+ d.file('b.dart', formattedSource),
+ ])
]).validate();
});
@@ -156,8 +170,9 @@ void main() {
processDirectory(overwriteOptions, dir);
}, 'Run formatter.');
- d.dir(
- 'code', [d.file('linked_file.dart', unformattedSource),]).validate();
+ d.dir('code', [
+ d.file('linked_file.dart', unformattedSource),
+ ]).validate();
});
test("follows file symlinks when 'followLinks' is true", () {
@@ -175,7 +190,9 @@ void main() {
processDirectory(followOptions, dir);
}, 'running formatter');
- d.dir('code', [d.file('linked_file.dart', formattedSource),]).validate();
+ d.dir('code', [
+ d.file('linked_file.dart', formattedSource),
+ ]).validate();
});
}
}
« no previous file with comments | « lib/src/source_visitor.dart ('k') | test/regression/0200/0223.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698