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

Side by Side Diff: tests/compiler/dart2js/constant_namer_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 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 'package:async_helper/async_helper.dart'; 5 import 'package:async_helper/async_helper.dart';
6 import 'package:expect/expect.dart'; 6 import 'package:expect/expect.dart';
7 import 'compiler_helper.dart'; 7 import 'compiler_helper.dart';
8 8
9 const String TEST_ONE = r""" 9 const String TEST_ONE = r"""
10 class Token { 10 class Token {
(...skipping 10 matching lines...) Expand all
21 const Token(true, false).use(); 21 const Token(true, false).use();
22 } 22 }
23 """; 23 """;
24 24
25 main() { 25 main() {
26 check(generated, text) { 26 check(generated, text) {
27 Expect.isTrue(generated.contains(text), text); 27 Expect.isTrue(generated.contains(text), text);
28 } 28 }
29 29
30 asyncTest(() => compile(TEST_ONE, entry: 'test').then((String generated) { 30 asyncTest(() => compile(TEST_ONE, entry: 'test').then((String generated) {
31 check(generated, '.List_12_53.'); 31 check(generated, '.List_12_53.');
32 check(generated, '.Token_start_null.'); 32 check(generated, '.Token_start_null.');
33 check(generated, '.Token_end_null.'); 33 check(generated, '.Token_end_null.');
34 check(generated, '.Token_yes_12.'); 34 check(generated, '.Token_yes_12.');
35 check(generated, '.Token_true_false.'); 35 check(generated, '.Token_true_false.');
36 })); 36 }));
37 } 37 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/constant_folding_test.dart ('k') | tests/compiler/dart2js/container_mask_equal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698