@@ -111,7 +111,7 @@ class VMPlatform extends PlatformPlugin {
111
111
if (platform.compiler == Compiler .exe) {
112
112
throw UnsupportedError (
113
113
'Unable to debug tests compiled to `exe` (tried to debug $path with '
114
- 'the `exe` compiler).' );
114
+ 'the `exe` compiler).' );
115
115
}
116
116
var info =
117
117
await Service .controlWebServer (enable: true , silenceOutput: true );
@@ -123,8 +123,7 @@ class VMPlatform extends PlatformPlugin {
123
123
client = await vmServiceConnectUri (_wsUriFor (serverUri).toString ());
124
124
var isolateNumber = int .parse (isolateID.split ('/' ).last);
125
125
isolateRef = (await client.getVM ())
126
- .isolates!
127
- .firstWhere ((isolate) => isolate.number == isolateNumber.toString ());
126
+ .isolates! .firstWhere ((isolate) => isolate.number == isolateNumber.toString ());
128
127
await client.setName (isolateRef.id! , path);
129
128
var libraryRef = (await client.getIsolate (isolateRef.id! ))
130
129
.libraries!
@@ -180,8 +179,8 @@ class VMPlatform extends PlatformPlugin {
180
179
Future <String > _compileToNative (String path, Metadata suiteMetadata) async {
181
180
var bootstrapPath = await _bootstrapNativeTestFile (
182
181
path,
183
- suiteMetadata.languageVersionComment ??
184
- await rootPackageLanguageVersionComment);
182
+ suiteMetadata.languageVersionComment ??
183
+ await rootPackageLanguageVersionComment);
185
184
var output = File (p.setExtension (bootstrapPath, '.exe' ));
186
185
var processResult = await Process .run (Platform .resolvedExecutable, [
187
186
'compile' ,
@@ -221,8 +220,8 @@ stderr: ${processResult.stderr}''');
221
220
Compiler .source => _spawnIsolateWithUri (
222
221
await _bootstrapIsolateTestFile (
223
222
path,
224
- suiteMetadata.languageVersionComment ??
225
- await rootPackageLanguageVersionComment),
223
+ suiteMetadata.languageVersionComment ??
224
+ await rootPackageLanguageVersionComment),
226
225
message),
227
226
_ => throw StateError (
228
227
'Unsupported compiler $compiler for the VM platform' ),
@@ -246,9 +245,14 @@ stderr: ${processResult.stderr}''');
246
245
247
246
/// Runs [uri] in an isolate, passing [message] .
248
247
Future <Isolate > _spawnIsolateWithUri (Uri uri, SendPort message) async {
249
- return await Isolate .spawnUri (uri, [], message,
250
- packageConfig: await packageConfigUri, checked: true ,
251
- debugName: 'test_main' );
248
+ return await Isolate .spawnUri (
249
+ uri,
250
+ [],
251
+ message,
252
+ packageConfig: await packageConfigUri,
253
+ checked: true ,
254
+ debugName: 'test_main' ,
255
+ );
252
256
}
253
257
254
258
Future <Isolate > _spawnPrecompiledIsolate (String testPath, SendPort message,
@@ -285,9 +289,14 @@ stderr: ${processResult.stderr}''');
285
289
packageConfig = null ;
286
290
}
287
291
}
288
- return await Isolate .spawnUri (testUri, [], message,
289
- packageConfig: packageConfig? .uri, checked: true ,
290
- debugName: 'test_main' );
292
+ return await Isolate .spawnUri (
293
+ testUri,
294
+ [],
295
+ message,
296
+ packageConfig: packageConfig? .uri,
297
+ checked: true ,
298
+ debugName: 'test_main' ,
299
+ );
291
300
}
292
301
293
302
/// Bootstraps the test at [testPath] and writes its contents to a temporary
@@ -346,7 +355,7 @@ Uri _wsUriFor(Uri observatoryUrl) =>
346
355
Uri _observatoryUrlFor (Uri base , String isolateId, String id) => base .replace (
347
356
fragment: Uri (
348
357
path: '/inspect' ,
349
- queryParameters: {'isolateId' : isolateId, 'objectId' : id}).toString ());
358
+ queryParameters: {'isolateId' : isolateId, 'objectId' : id}).toString ());
350
359
351
360
var _hasRegistered = false ;
352
361
void _setupPauseAfterTests () {
0 commit comments