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

Unified Diff: pkg/docgen/test/util.dart

Issue 172873002: pkg/docgen: putting test code in file system (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 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/docgen/test/multi_library_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/test/util.dart
diff --git a/pkg/docgen/test/util.dart b/pkg/docgen/test/util.dart
new file mode 100644
index 0000000000000000000000000000000000000000..fad786d4417ca5ce73cf0120eb60b2788c4aa12c
--- /dev/null
+++ b/pkg/docgen/test/util.dart
@@ -0,0 +1,11 @@
+import 'dart:io';
+import 'package:path/path.dart' as p;
+
+String getMultiLibraryCodePath() {
+ var currentScript = p.fromUri(Platform.script);
+ var codeDir = p.join(p.dirname(currentScript), 'multi_library_code');
+
+ assert(FileSystemEntity.isDirectorySync(codeDir));
+
+ return codeDir;
+}
« no previous file with comments | « pkg/docgen/test/multi_library_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698