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

Unified Diff: samples/sample_extension/test/sample_extension_test_helper.dart

Issue 2828603002: Format samples and samples-dev directories. (Closed)
Patch Set: 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: samples/sample_extension/test/sample_extension_test_helper.dart
diff --git a/samples/sample_extension/test/sample_extension_test_helper.dart b/samples/sample_extension/test/sample_extension_test_helper.dart
index 78cfaf3748ff5d0725964677ce5a217a4ceac807..08d51918e892fd3931a26058a23fb403a39de95d 100644
--- a/samples/sample_extension/test/sample_extension_test_helper.dart
+++ b/samples/sample_extension/test/sample_extension_test_helper.dart
@@ -54,15 +54,19 @@ Future testNativeExtensions(String snapshotKind) async {
// Copy sample_extension dart files and sample_extension tests to the
// temporary test directory.
- for (var file in ['sample_synchronous_extension.dart',
- 'sample_asynchronous_extension.dart',
- 'test_sample_synchronous_extension.dart',
- 'test_sample_asynchronous_extension.dart']) {
+ for (var file in [
+ 'sample_synchronous_extension.dart',
+ 'sample_asynchronous_extension.dart',
+ 'test_sample_synchronous_extension.dart',
+ 'test_sample_asynchronous_extension.dart'
+ ]) {
await copyFileToDirectory(join(sourceDirectory, file), testDirectory);
}
- for (var test in ['test_sample_synchronous_extension.dart',
- 'test_sample_asynchronous_extension.dart']) {
+ for (var test in [
+ 'test_sample_synchronous_extension.dart',
+ 'test_sample_asynchronous_extension.dart'
+ ]) {
String script = join(testDirectory, test);
String snapshot;
if (snapshotKind == null) {
@@ -70,9 +74,7 @@ Future testNativeExtensions(String snapshotKind) async {
} else {
snapshot = join(testDirectory, "$test.snapshot");
await run(Platform.executable,
- ['--snapshot=$snapshot',
- '--snapshot-kind=$snapshotKind',
- script]);
+ ['--snapshot=$snapshot', '--snapshot-kind=$snapshotKind', script]);
}
await run(Platform.executable, [snapshot]);

Powered by Google App Engine
This is Rietveld 408576698