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

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

Issue 2990223002: Reformat untouched files. (Closed)
Patch Set: Created 3 years, 4 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 bb5a2c387fa2808eccae6ffc6c1112db6ff53084..7a7012726f5a44daea97ff4e5a9bc250f9144e0f 100644
--- a/tests/compiler/dart2js/analyze_only_test.dart
+++ b/tests/compiler/dart2js/analyze_only_test.dart
@@ -113,22 +113,18 @@ main() {
Expect.equals("${template.message({'main': 'main'})}", warnings.single);
});
- runCompiler(
- """main() {
+ runCompiler("""main() {
Foo foo; // Unresolved and analyzed.
- }""",
- [Flags.analyzeOnly], (String code, List errors, List warnings) {
+ }""", [Flags.analyzeOnly], (String code, List errors, List warnings) {
Expect.isNull(code);
Expect.isTrue(errors.isEmpty);
Expect.equals(1, warnings.length);
Expect.equals("Cannot resolve type 'Foo'.", warnings[0].toString());
});
- runCompiler(
- """main() {
+ runCompiler("""main() {
Foo foo; // Unresolved and analyzed.
- }""",
- [Flags.analyzeOnly, Flags.analyzeSignaturesOnly],
+ }""", [Flags.analyzeOnly, Flags.analyzeSignaturesOnly],
(String code, List errors, List warnings) {
Expect.isNull(code);
Expect.isTrue(errors.isEmpty);
@@ -144,10 +140,8 @@ main() {
Expect.equals("Cannot resolve type 'Foo'.", warnings[0].toString());
});
- runCompiler(
- """Foo foo; // Unresolved and analyzed.
- main() {}""",
- [Flags.analyzeOnly, Flags.analyzeAll],
+ runCompiler("""Foo foo; // Unresolved and analyzed.
+ main() {}""", [Flags.analyzeOnly, Flags.analyzeAll],
(String code, List errors, List warnings) {
Expect.isNull(code);
Expect.isTrue(errors.isEmpty, 'Unexpected errors: $errors.');
@@ -171,19 +165,16 @@ main() {
});
// Test that --allow-native-extensions works.
- runCompiler(
- """main() {}
- foo() native 'foo';""",
- [Flags.analyzeOnly, Flags.allowNativeExtensions],
+ runCompiler("""main() {}
+ foo() native 'foo';""", [Flags.analyzeOnly, Flags.allowNativeExtensions],
(String code, List errors, List warnings) {
Expect.isNull(code);
Expect.isTrue(errors.isEmpty);
Expect.isTrue(warnings.isEmpty);
});
- runCompiler(
- """main() {}
- foo() native 'foo';""",
- [Flags.analyzeOnly], (String code, List errors, List warnings) {
+ runCompiler("""main() {}
+ foo() native 'foo';""", [Flags.analyzeOnly],
+ (String code, List errors, List warnings) {
Expect.isNull(code);
Expect.isTrue(
errors.single.startsWith("'native' modifier is not supported."));

Powered by Google App Engine
This is Rietveld 408576698