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

Unified Diff: tests/compiler/dart2js/analyze_only_test.dart

Issue 12431009: Add --analyze-signatures-only option to dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test Created 7 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
Index: tests/compiler/dart2js/analyze_only_test.dart
diff --git a/tests/compiler/dart2js/analyze_only_test.dart b/tests/compiler/dart2js/analyze_only_test.dart
index f17aed48b1d02be16c8c524e56c83e4e34c995f3..fad5eb53cf5e2c0ae437083ec4ec6353b411cafe 100644
--- a/tests/compiler/dart2js/analyze_only_test.dart
+++ b/tests/compiler/dart2js/analyze_only_test.dart
@@ -108,6 +108,17 @@ main() {
});
runCompiler(
+ """main() {
+ Foo foo; // Unresolved and analyzed.
+ }""",
+ ['--analyze-only', '--analyze-signatures-only'],
+ (String code, List errors, List warnings) {
+ Expect.isNull(code);
+ Expect.isTrue(errors.isEmpty);
+ Expect.isTrue(warnings.isEmpty);
+ });
+
+ runCompiler(
"Foo foo; // Unresolved and analyzed.",
['--analyze-only', '--analyze-all'],
(String code, List errors, List warnings) {

Powered by Google App Engine
This is Rietveld 408576698