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

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

Issue 679763002: Add package root support to analysis server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/integration_tests.dart
diff --git a/pkg/analysis_server/test/integration/integration_tests.dart b/pkg/analysis_server/test/integration/integration_tests.dart
index ac9d69bc809095d74055e81aac0805fd20aa3d45..a2e188ddf45e936d4c0b2c73d68bd755a35587af 100644
--- a/pkg/analysis_server/test/integration/integration_tests.dart
+++ b/pkg/analysis_server/test/integration/integration_tests.dart
@@ -67,10 +67,14 @@ abstract class AbstractAnalysisServerIntegrationTest extends
* overwritten.
*
* Parent directories are created as necessary.
+ *
+ * Return a normalized path to the file (with symbolic links resolved).
*/
- void writeFile(String pathname, String contents) {
+ String writeFile(String pathname, String contents) {
new Directory(dirname(pathname)).createSync(recursive: true);
- new File(pathname).writeAsStringSync(contents);
+ File file = new File(pathname);
+ file.writeAsStringSync(contents);
+ return file.resolveSymbolicLinksSync();
}
/**

Powered by Google App Engine
This is Rietveld 408576698