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

Unified Diff: tools/testing/dart/drt_updater.dart

Issue 1859973002: Autoformat tools/testing/dart (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Format whole directory Created 4 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
« no previous file with comments | « tools/testing/dart/dependency_graph.dart ('k') | tools/testing/dart/html_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/drt_updater.dart
diff --git a/tools/testing/dart/drt_updater.dart b/tools/testing/dart/drt_updater.dart
index 3f348859fa356dce9d0c50e174a41a68fda31eaf..ee5a6285443b913625b20b8a58f06d11a48da6a7 100644
--- a/tools/testing/dart/drt_updater.dart
+++ b/tools/testing/dart/drt_updater.dart
@@ -28,7 +28,11 @@ class _DartiumUpdater {
if (!isActive) {
isActive = true;
print('Updating $name.');
- onUpdated = [() {updated = true;} ];
+ onUpdated = [
+ () {
+ updated = true;
+ }
+ ];
_updatingProcess = Process.run('python', _getUpdateCommand);
_updatingProcess.then(_onUpdatedHandler).catchError((e) {
print("Error starting $script process: $e");
@@ -57,7 +61,7 @@ class _DartiumUpdater {
print(result.stderr);
exit(1);
}
- for (var callback in onUpdated ) callback();
+ for (var callback in onUpdated) callback();
}
}
@@ -69,17 +73,15 @@ _DartiumUpdater runtimeUpdater(Map configuration) {
if (runtime == 'drt' && configuration['drt'] == '') {
// Download the default content shell from Google Storage.
if (_contentShellUpdater == null) {
- _contentShellUpdater = new _DartiumUpdater('Content Shell',
- 'tools/get_archive.py',
- 'drt');
+ _contentShellUpdater =
+ new _DartiumUpdater('Content Shell', 'tools/get_archive.py', 'drt');
}
return _contentShellUpdater;
} else if (runtime == 'dartium' && configuration['dartium'] == '') {
// Download the default Dartium from Google Storage.
if (_dartiumUpdater == null) {
- _dartiumUpdater = new _DartiumUpdater('Dartium Chrome',
- 'tools/get_archive.py',
- 'dartium');
+ _dartiumUpdater = new _DartiumUpdater(
+ 'Dartium Chrome', 'tools/get_archive.py', 'dartium');
}
return _dartiumUpdater;
} else {
« no previous file with comments | « tools/testing/dart/dependency_graph.dart ('k') | tools/testing/dart/html_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698