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

Unified Diff: pkg/analysis_server/test/integration/analysis/get_hover_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/get_hover_test.dart
diff --git a/pkg/analysis_server/test/integration/analysis/get_hover_test.dart b/pkg/analysis_server/test/integration/analysis/get_hover_test.dart
index 921a266832918ac52747f078536b5133f5018247..7c6a742e8ee7d54d52b15f1063017d26c73fceeb 100644
--- a/pkg/analysis_server/test/integration/analysis/get_hover_test.dart
+++ b/pkg/analysis_server/test/integration/analysis/get_hover_test.dart
@@ -7,7 +7,7 @@ library test.integration.analysis.get.hover;
import 'dart:async';
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';
@@ -78,7 +78,7 @@ main() {
expect(info.offset, equals(offset));
expect(info.length, equals(length));
if (isCore) {
- expect(basename(info.containingLibraryPath), equals('core.dart'));
+ expect(path.basename(info.containingLibraryPath), equals('core.dart'));
expect(info.containingLibraryName, equals('dart.core'));
} else if (isLocal || isLiteral) {
expect(info.containingLibraryPath, isNull);

Powered by Google App Engine
This is Rietveld 408576698