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

Side by Side Diff: tests/compiler/dart2js/size_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:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 import "package:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 import "compiler_helper.dart"; 7 import "compiler_helper.dart";
8 8
9 const String TEST = "main() => [];"; 9 const String TEST = "main() => [];";
10 10
11 const Map<String, String> DEFAULT_CORELIB_WITH_LIST = const <String, String>{ 11 const Map<String, String> DEFAULT_CORELIB_WITH_LIST = const <String, String>{
12 'Object': 'class Object { const Object(); }', 12 'Object': 'class Object { const Object(); }',
13 'bool': 'class bool {}', 13 'bool': 'class bool {}',
14 'List': 'abstract class List<E> {}', 14 'List': 'abstract class List<E> {}',
15 'num': 'class num {}', 15 'num': 'class num {}',
16 'int': 'class int {}', 16 'int': 'class int {}',
17 'double': 'class double {}', 17 'double': 'class double {}',
18 'String': 'class String {}', 18 'String': 'class String {}',
19 'Function': 'class Function {}', 19 'Function': 'class Function {}',
20 'Null': 'class Null {}', 20 'Null': 'class Null {}',
21 'Type': 'class Type {}', 21 'Type': 'class Type {}',
22 'Map': 'class Map {}', 22 'Map': 'class Map {}',
23 'StackTrace': 'class StackTrace {}', 23 'StackTrace': 'class StackTrace {}',
24 'identical': 'identical(a, b) => true;', 24 'identical': 'identical(a, b) => true;',
25 'proxy': 'const proxy = 0;', 25 'proxy': 'const proxy = 0;',
26 }; 26 };
27 27
28 main() { 28 main() {
29 asyncTest(() => compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST). 29 asyncTest(() =>
30 then((generated) { 30 compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST).then((generated) {
31 return MockCompiler.create((MockCompiler compiler) { 31 return MockCompiler.create((MockCompiler compiler) {
32 var backend = compiler.backend; 32 var backend = compiler.backend;
33 33
34 // Make sure no class is emitted. 34 // Make sure no class is emitted.
35 Expect.isFalse(generated.contains('finishClasses')); 35 Expect.isFalse(generated.contains('finishClasses'));
36 }); 36 });
37 })); 37 }));
38 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698