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

Unified Diff: pkg/analyzer_plugin/tool/spec/check_all_test.dart

Issue 2966623003: Add the tests of the spec generator to the unit tests (Closed)
Patch Set: Created 3 years, 6 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/analyzer_plugin/test/test_all.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_plugin/tool/spec/check_all_test.dart
diff --git a/pkg/analyzer_plugin/tool/spec/check_all_test.dart b/pkg/analyzer_plugin/tool/spec/check_all_test.dart
index 3625eb59c0e6bde210e5e8a16ea632cd6b584062..db9d2e5a3e2bce43617ddeb7f4536a84134a37af 100644
--- a/pkg/analyzer_plugin/tool/spec/check_all_test.dart
+++ b/pkg/analyzer_plugin/tool/spec/check_all_test.dart
@@ -15,6 +15,9 @@ import 'generate_all.dart';
*/
main() {
String script = Platform.script.toFilePath(windows: Platform.isWindows);
- String pkgPath = normalize(join(dirname(script), '..', '..'));
- GeneratedContent.checkAll(pkgPath, 'tool/spec/generate_all.dart', allTargets);
+ List<String> components = split(script);
+ int index = components.indexOf('analyzer_plugin');
+ String pkgPath = joinAll(components.sublist(0, index + 1));
+ GeneratedContent.checkAll(
+ pkgPath, join('tool', 'spec', 'generate_all.dart'), allTargets);
}
« no previous file with comments | « pkg/analyzer_plugin/test/test_all.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698