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

Unified Diff: tools/testing/dart/record_and_replay.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/path.dart ('k') | tools/testing/dart/runtime_configuration.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/record_and_replay.dart
diff --git a/tools/testing/dart/record_and_replay.dart b/tools/testing/dart/record_and_replay.dart
index 68e67ce4e407383d8dd4c43f573c56b2678a120b..022c35d02f573561310c6f5210c73f893feb26a1 100644
--- a/tools/testing/dart/record_and_replay.dart
+++ b/tools/testing/dart/record_and_replay.dart
@@ -52,7 +52,7 @@ class TestCaseRecorder {
var _cwd;
TestCaseRecorder(this._outputPath) {
- _cwd = Directory.current.path;
+ _cwd = Directory.current.path;
}
void nextCommand(ProcessCommand command, int timeout) {
@@ -63,11 +63,11 @@ class TestCaseRecorder {
var arguments = makePathsRelativeToDart(_cwd, command.arguments);
var commandExecution = {
- 'name' : command.displayName,
- 'command' : {
- 'timeout_limit' : timeout,
- 'executable' : command.executable,
- 'arguments' : arguments,
+ 'name': command.displayName,
+ 'command': {
+ 'timeout_limit': timeout,
+ 'executable': command.executable,
+ 'arguments': arguments,
},
};
_recordedCommandInvocations.add(commandExecution);
@@ -86,7 +86,7 @@ class TestCaseOutputArchive {
var _cwd;
TestCaseOutputArchive() {
- _cwd = Directory.current.path;
+ _cwd = Directory.current.path;
}
void loadFromPath(Path recordingPath) {
@@ -95,7 +95,7 @@ class TestCaseOutputArchive {
_commandOutputRecordings = {};
for (var commandRecording in commandRecordings) {
var key = _indexKey(commandRecording['command']['executable'],
- commandRecording['command']['arguments'].join(' '));
+ commandRecording['command']['arguments'].join(' '));
_commandOutputRecordings[key] = commandRecording['command_output'];
}
}
@@ -111,13 +111,13 @@ class TestCaseOutputArchive {
var command_output = _commandOutputRecordings[key];
if (command_output == null) {
print("Sorry, but there is no command output for ${command.displayName}"
- " ($command)");
+ " ($command)");
exit(42);
}
double seconds = command_output['duration'];
- var duration = new Duration(seconds: seconds.round(),
- milliseconds: (seconds/1000).round());
+ var duration = new Duration(
+ seconds: seconds.round(), milliseconds: (seconds / 1000).round());
var commandOutput = createCommandOutput(
command,
command_output['exit_code'],
@@ -133,4 +133,3 @@ class TestCaseOutputArchive {
return "${executable}__$arguments";
}
}
-
« no previous file with comments | « tools/testing/dart/path.dart ('k') | tools/testing/dart/runtime_configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698