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

Unified Diff: runtime/observatory/tests/service/dev_fs_http_put_weird_char_test.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (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: runtime/observatory/tests/service/dev_fs_http_put_weird_char_test.dart
diff --git a/runtime/observatory/tests/service/dev_fs_http_put_weird_char_test.dart b/runtime/observatory/tests/service/dev_fs_http_put_weird_char_test.dart
index 8e27a9812043dfb032978c6d877a291b67e3fb60..517a83261eea841c0f95e7b74261dbdc8b7ddbb1 100644
--- a/runtime/observatory/tests/service/dev_fs_http_put_weird_char_test.dart
+++ b/runtime/observatory/tests/service/dev_fs_http_put_weird_char_test.dart
@@ -19,6 +19,7 @@ Future<String> readResponse(HttpClientResponse response) {
return completer.future;
}
+
var tests = [
// Write a file with the \r character in the filename.
(VM vm) async {
@@ -30,7 +31,7 @@ var tests = [
var result;
// Create DevFS.
- result = await vm.invokeRpcNoUpgrade('_createDevFS', {'fsName': fsId});
+ result = await vm.invokeRpcNoUpgrade('_createDevFS', { 'fsName': fsId });
expect(result['type'], equals('FileSystem'));
expect(result['name'], equals(fsId));
expect(result['uri'], new isInstanceOf<String>());
@@ -61,7 +62,8 @@ var tests = [
// Write the file again but this time with the true file contents.
client = new HttpClient();
- request = await client.putUrl(Uri.parse(serviceHttpAddress));
+ request =
+ await client.putUrl(Uri.parse(serviceHttpAddress));
request.headers.add('dev_fs_name', fsId);
request.headers.add('dev_fs_path_b64', filePathBase64);
request.add(GZIP.encode(fileContents));
@@ -75,15 +77,15 @@ var tests = [
// Read the file back.
result = await vm.invokeRpcNoUpgrade('_readDevFSFile', {
- 'fsName': fsId,
- 'path': filePath,
+ 'fsName': fsId,
+ 'path': filePath,
});
expect(result['type'], equals('FSFile'));
expect(result['fileContents'], equals(fileContentsBase64));
// List all the files in the file system.
result = await vm.invokeRpcNoUpgrade('_listDevFSFiles', {
- 'fsName': fsId,
+ 'fsName': fsId,
});
expect(result['type'], equals('FSFileList'));
expect(result['files'].length, equals(1));
@@ -91,7 +93,7 @@ var tests = [
// Delete DevFS.
result = await vm.invokeRpcNoUpgrade('_deleteDevFS', {
- 'fsName': fsId,
+ 'fsName': fsId,
});
expect(result['type'], equals('Success'));
},
« no previous file with comments | « runtime/observatory/tests/service/dev_fs_http_put_test.dart ('k') | runtime/observatory/tests/service/dev_fs_spawn_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698