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

Unified Diff: tests/compiler/dart2js/pretty_parameter_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
« no previous file with comments | « tests/compiler/dart2js/preserve_uris_test.dart ('k') | tests/compiler/dart2js/private_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/pretty_parameter_test.dart
diff --git a/tests/compiler/dart2js/pretty_parameter_test.dart b/tests/compiler/dart2js/pretty_parameter_test.dart
index 3aa4db1f650808a1d18355b611680ee030dfe98b..e075e68c4bc158d9126df2aa346a00b08862cc4b 100644
--- a/tests/compiler/dart2js/pretty_parameter_test.dart
+++ b/tests/compiler/dart2js/pretty_parameter_test.dart
@@ -74,33 +74,31 @@ int foo(var start, bool test) {
main() {
asyncTest(() => Future.wait([
- compile(FOO, entry: 'foo', check: (String generated) {
- Expect.isTrue(generated.contains(r"function(a, b) {"));
- }),
-
- compile(BAR, entry: 'bar', check: (String generated) {
- Expect.isTrue(generated.contains(r"function($eval, $$eval) {"));
- }),
-
- compile(PARAMETER_AND_TEMP, entry: 'bar', check: (String generated) {
- Expect.isTrue(generated.contains(r"print(t00)"));
- // Check that the second 't0' got another name.
- Expect.isTrue(generated.contains(r"print(t01)"));
- }),
-
- compile(MULTIPLE_PHIS_ONE_LOCAL, entry: 'foo', check: (String generated) {
- Expect.isTrue(generated.contains("var a;"));
- // Check that there is only one var declaration.
- checkNumberOfMatches(new RegExp("var").allMatches(generated).iterator, 1);
- }),
-
- compile(NO_LOCAL, entry: 'foo', check: (String generated) {
- Expect.isFalse(generated.contains('var'));
- }),
-
- compile(PARAMETER_INIT, entry: 'foo', check: (String generated) {
- // Check that there is only one var declaration.
- checkNumberOfMatches(new RegExp("var").allMatches(generated).iterator, 1);
- }),
- ]));
+ compile(FOO, entry: 'foo', check: (String generated) {
+ Expect.isTrue(generated.contains(r"function(a, b) {"));
+ }),
+ compile(BAR, entry: 'bar', check: (String generated) {
+ Expect.isTrue(generated.contains(r"function($eval, $$eval) {"));
+ }),
+ compile(PARAMETER_AND_TEMP, entry: 'bar', check: (String generated) {
+ Expect.isTrue(generated.contains(r"print(t00)"));
+ // Check that the second 't0' got another name.
+ Expect.isTrue(generated.contains(r"print(t01)"));
+ }),
+ compile(MULTIPLE_PHIS_ONE_LOCAL, entry: 'foo',
+ check: (String generated) {
+ Expect.isTrue(generated.contains("var a;"));
+ // Check that there is only one var declaration.
+ checkNumberOfMatches(
+ new RegExp("var").allMatches(generated).iterator, 1);
+ }),
+ compile(NO_LOCAL, entry: 'foo', check: (String generated) {
+ Expect.isFalse(generated.contains('var'));
+ }),
+ compile(PARAMETER_INIT, entry: 'foo', check: (String generated) {
+ // Check that there is only one var declaration.
+ checkNumberOfMatches(
+ new RegExp("var").allMatches(generated).iterator, 1);
+ }),
+ ]));
}
« no previous file with comments | « tests/compiler/dart2js/preserve_uris_test.dart ('k') | tests/compiler/dart2js/private_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698