Index: runtime/observatory/tests/service/dev_fs_uri_test.dart |
diff --git a/runtime/observatory/tests/service/dev_fs_uri_test.dart b/runtime/observatory/tests/service/dev_fs_uri_test.dart |
index 3094284fc7cbe6c12ceb67d977b182e7151b049a..f8ae29c8f0067adfd79d23771394e0f3ef74ae67 100644 |
--- a/runtime/observatory/tests/service/dev_fs_uri_test.dart |
+++ b/runtime/observatory/tests/service/dev_fs_uri_test.dart |
@@ -19,6 +19,7 @@ Future<String> readResponse(HttpClientResponse response) { |
return completer.future; |
} |
+ |
var tests = [ |
// Write a file with the ? character in the filename. |
(VM vm) async { |
@@ -35,7 +36,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>()); |
@@ -67,7 +68,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_uri_b64', fileUriBase64); |
request.add(GZIP.encode(fileContents)); |
@@ -81,8 +83,8 @@ var tests = [ |
// Read the file back. |
result = await vm.invokeRpcNoUpgrade('_readDevFSFile', { |
- 'fsName': fsId, |
- 'uri': fileUri.toString(), |
+ 'fsName': fsId, |
+ 'uri': fileUri.toString(), |
}); |
expect(result['type'], equals('FSFile')); |
expect(result['fileContents'], equals(fileContentsBase64)); |
@@ -96,15 +98,15 @@ var tests = [ |
// Read the second file back. |
result = await vm.invokeRpcNoUpgrade('_readDevFSFile', { |
- 'fsName': fsId, |
- 'uri': fileUri2.toString(), |
+ 'fsName': fsId, |
+ 'uri': fileUri2.toString(), |
}); |
expect(result['type'], equals('FSFile')); |
expect(result['fileContents'], equals(fileContentsBase64)); |
// Delete DevFS. |
result = await vm.invokeRpcNoUpgrade('_deleteDevFS', { |
- 'fsName': fsId, |
+ 'fsName': fsId, |
}); |
expect(result['type'], equals('Success')); |
}, |