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

Unified Diff: pkg/analysis_server/test/integration/analysis/package_root_test.dart

Issue 2518873002: Use an import prefix in the analysis server tests; this fixes some issues conflicting with the (Closed)
Patch Set: use path prefix Created 4 years, 1 month 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: pkg/analysis_server/test/integration/analysis/package_root_test.dart
diff --git a/pkg/analysis_server/test/integration/analysis/package_root_test.dart b/pkg/analysis_server/test/integration/analysis/package_root_test.dart
index 4febe5ad1450dddd2f6c76ee19f746eadc3573a2..5ad9c38e70d4bd074e350558662d7ef2a9dcdd67 100644
--- a/pkg/analysis_server/test/integration/analysis/package_root_test.dart
+++ b/pkg/analysis_server/test/integration/analysis/package_root_test.dart
@@ -5,7 +5,7 @@
library test.integration.analysis.packageRoot;
import 'package:analysis_server/plugin/protocol/protocol.dart';
-import 'package:path/path.dart';
+import 'package:path/path.dart' as path;
import 'package:test/test.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
@@ -21,9 +21,9 @@ main() {
class Test extends AbstractAnalysisServerIntegrationTest {
test_package_root() {
String projPath = sourcePath('project');
- String mainPath = join(projPath, 'main.dart');
+ String mainPath = path.join(projPath, 'main.dart');
String packagesPath = sourcePath('packages');
- String fooBarPath = join(packagesPath, 'foo', 'bar.dart');
+ String fooBarPath = path.join(packagesPath, 'foo', 'bar.dart');
String mainText = """
library main;

Powered by Google App Engine
This is Rietveld 408576698