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

Unified Diff: pkg/analysis_server/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/analysis_server/test/test_all.dart ('k') | pkg/analyzer_plugin/test/test_all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/tool/spec/check_all_test.dart
diff --git a/pkg/analysis_server/tool/spec/check_all_test.dart b/pkg/analysis_server/tool/spec/check_all_test.dart
index 3625eb59c0e6bde210e5e8a16ea632cd6b584062..fa3c13f43ef65943171209ce8da0f415d99d867c 100644
--- a/pkg/analysis_server/tool/spec/check_all_test.dart
+++ b/pkg/analysis_server/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('analysis_server');
+ String pkgPath = joinAll(components.sublist(0, index + 1));
+ GeneratedContent.checkAll(
+ pkgPath, join('tool', 'spec', 'generate_all.dart'), allTargets);
}
« no previous file with comments | « pkg/analysis_server/test/test_all.dart ('k') | pkg/analyzer_plugin/test/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698