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

Unified Diff: pkg/analysis_server/test/integration/completion_domain_int_test.dart

Issue 437383003: Simplify handling of pathnames in integration tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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
Index: pkg/analysis_server/test/integration/completion_domain_int_test.dart
diff --git a/pkg/analysis_server/test/integration/completion_domain_int_test.dart b/pkg/analysis_server/test/integration/completion_domain_int_test.dart
index bfb9238ab166c5b201b4cb319024f0ba31875a1f..4621abee956603168ebeab1798eaf3eac4d32144 100644
--- a/pkg/analysis_server/test/integration/completion_domain_int_test.dart
+++ b/pkg/analysis_server/test/integration/completion_domain_int_test.dart
@@ -17,8 +17,7 @@ class CompletionDomainIntegrationTest extends
AbstractAnalysisServerIntegrationTest {
fail_test_getSuggestions_string_var() {
// See dartbug.com/20188
- String filename = 'test.dart';
- String pathname = normalizePath(filename);
+ String pathname = sourcePath('test.dart');
String text =
r'''
var test = '';
@@ -26,8 +25,8 @@ main() {
test.
}
''';
- writeFile(filename, text);
- setAnalysisRoots(['']);
+ writeFile(pathname, text);
+ standardAnalysisRoot();
return analysisFinished.then((_) {
return server.send(COMPLETION_GET_SUGGESTIONS, {

Powered by Google App Engine
This is Rietveld 408576698