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

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

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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/declare_once_test.dart
diff --git a/tests/compiler/dart2js/declare_once_test.dart b/tests/compiler/dart2js/declare_once_test.dart
index 729a5abebcc2212e1a930cfff67f774013642f83..63535ebe4c4c791372f56e4bcfac02d0182e9615 100644
--- a/tests/compiler/dart2js/declare_once_test.dart
+++ b/tests/compiler/dart2js/declare_once_test.dart
@@ -12,16 +12,17 @@ main() {
// compactness. Test that we don't also declare it at the start of the
// method.
asyncTest(() => compile(
- 'final List a = const ["bar", "baz"];'
- 'int foo() {'
- ' for (int i = 0; i < a.length; i++) {'
- ' print(a[i]);'
- ' }'
- '}',
- entry: 'foo', minify: false).then((String generated) {
- RegExp re = new RegExp(r"var ");
- Expect.isTrue(re.hasMatch(generated));
- print(generated);
- Expect.equals(1, re.allMatches(generated).length);
- }));
+ 'final List a = const ["bar", "baz"];'
+ 'int foo() {'
+ ' for (int i = 0; i < a.length; i++) {'
+ ' print(a[i]);'
+ ' }'
+ '}',
+ entry: 'foo',
+ minify: false).then((String generated) {
+ RegExp re = new RegExp(r"var ");
+ Expect.isTrue(re.hasMatch(generated));
+ print(generated);
+ Expect.equals(1, re.allMatches(generated).length);
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/dead_phi_eliminator_test.dart ('k') | tests/compiler/dart2js/deferred_custom_element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698