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

Unified Diff: pkg/analysis_server/test/integration/execution/map_uri_test.dart

Issue 2681393004: Implement also 'execution.mapUri' for file to URI. (Closed)
Patch Set: Created 3 years, 10 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 | « pkg/analysis_server/lib/src/domain_execution.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
+ }
}
}
« no previous file with comments | « pkg/analysis_server/lib/src/domain_execution.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698