| Index: pkg/analysis_server/test/integration/execution/map_uri_test.dart
|
| diff --git a/pkg/analysis_server/test/integration/execution/map_uri_test.dart b/pkg/analysis_server/test/integration/execution/map_uri_test.dart
|
| index 08672b5c6a9c88501a6ef0a3e293ef6f66fdd0c4..c865bd781a496b7f2d12b145f9e1b66c6f1b82c1 100644
|
| --- a/pkg/analysis_server/test/integration/execution/map_uri_test.dart
|
| +++ b/pkg/analysis_server/test/integration/execution/map_uri_test.dart
|
| @@ -2,8 +2,6 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -import 'dart:async';
|
| -
|
| import 'package:analysis_server/plugin/protocol/protocol.dart';
|
| import 'package:test/test.dart';
|
| import 'package:test_reflective_loader/test_reflective_loader.dart';
|
| @@ -18,7 +16,7 @@ main() {
|
| }
|
|
|
| class AbstractMapUriTest extends AbstractAnalysisServerIntegrationTest {
|
| - Future test_mapUri() async {
|
| + test_mapUri() async {
|
| String pathname = sourcePath('lib/main.dart');
|
| writeFile(pathname, '// dummy');
|
| writeFile(sourcePath('.packages'), 'foo:lib/');
|
| @@ -26,9 +24,18 @@ class AbstractMapUriTest extends AbstractAnalysisServerIntegrationTest {
|
|
|
| String contextId =
|
| (await sendExecutionCreateContext(sourceDirectory.path))?.id;
|
| - ExecutionMapUriResult result =
|
| - await sendExecutionMapUri(contextId, uri: 'package:foo/main.dart');
|
| - expect(result.file, pathname);
|
| +
|
| + {
|
| + ExecutionMapUriResult result =
|
| + await sendExecutionMapUri(contextId, uri: 'package:foo/main.dart');
|
| + expect(result.file, pathname);
|
| + }
|
| +
|
| + {
|
| + ExecutionMapUriResult result =
|
| + await sendExecutionMapUri(contextId, file: pathname);
|
| + expect(result.uri, 'package:foo/main.dart');
|
| + }
|
| }
|
| }
|
|
|
|
|