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

Side by Side Diff: tests/compiler/dart2js/emit_const_fields_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 // Test that unused static consts are not emitted. 4 // Test that unused static consts are not emitted.
5 5
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_GUIDE = r""" 10 const String TEST_GUIDE = r"""
11 class Guide { 11 class Guide {
12 static const LTUAE = 42; 12 static const LTUAE = 42;
13 static const TITLE = 'Life, the Universe and Everything'; 13 static const TITLE = 'Life, the Universe and Everything';
14 } 14 }
15 15
16 main() { 16 main() {
17 return "${Guide.LTUAE}, ${Guide.TITLE}"; 17 return "${Guide.LTUAE}, ${Guide.TITLE}";
18 } 18 }
19 """; 19 """;
20 20
21 main() { 21 main() {
22 asyncTest(() => compileAll(TEST_GUIDE).then((generated) { 22 asyncTest(() => compileAll(TEST_GUIDE).then((generated) {
23 Expect.isTrue(generated.contains("42")); 23 Expect.isTrue(generated.contains("42"));
24 Expect.isFalse(generated.contains("TITLE")); 24 Expect.isFalse(generated.contains("TITLE"));
25 })); 25 }));
26 } 26 }
27
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/embedded_category_api_boundary_test.dart ('k') | tests/compiler/dart2js/enumset_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698