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

Side by Side Diff: tests/compiler/dart2js/for_in_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'package:expect/expect.dart'; 6 import 'package:expect/expect.dart';
7 import 'package:async_helper/async_helper.dart'; 7 import 'package:async_helper/async_helper.dart';
8 import 'compiler_helper.dart'; 8 import 'compiler_helper.dart';
9 9
10 const String TEST_ONE = r""" 10 const String TEST_ONE = r"""
(...skipping 12 matching lines...) Expand all
23 for (int i in a) { 23 for (int i in a) {
24 if (i == 5) continue; 24 if (i == 5) continue;
25 x += i; 25 x += i;
26 } 26 }
27 return x; 27 return x;
28 } 28 }
29 """; 29 """;
30 30
31 main() { 31 main() {
32 asyncTest(() => Future.wait([ 32 asyncTest(() => Future.wait([
33 compile(TEST_ONE, entry: 'foo', check: (String generated) { 33 compile(TEST_ONE, entry: 'foo', check: (String generated) {
34 Expect.isTrue(!generated.contains(r'break')); 34 Expect.isTrue(!generated.contains(r'break'));
35 }), 35 }),
36 compile(TEST_TWO, entry: 'foo', check: (String generated) { 36 compile(TEST_TWO, entry: 'foo', check: (String generated) {
37 Expect.isTrue(generated.contains(r'continue')); 37 Expect.isTrue(generated.contains(r'continue'));
38 }), 38 }),
39 ])); 39 ]));
40 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698