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

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

Issue 17759007: First pass at asynchronous input loading in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove withCurrentElementAsync Created 7 years, 4 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 | Annotate | Revision Log
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 "compiler_helper.dart"; 6 import "compiler_helper.dart";
7 7
8 const String TEST = "main() => [];"; 8 const String TEST = "main() => [];";
9 9
10 const String DEFAULT_CORELIB_WITH_LIST = r''' 10 const String DEFAULT_CORELIB_WITH_LIST = r'''
11 class Object { 11 class Object {
12 Object(); 12 Object();
13 } 13 }
14 class bool {} 14 class bool {}
15 abstract class List {} 15 abstract class List {}
16 class num {} 16 class num {}
17 class int {} 17 class int {}
18 class double {} 18 class double {}
19 class String {} 19 class String {}
20 class Function {} 20 class Function {}
21 class Type {} 21 class Type {}
22 class Map {} 22 class Map {}
23 class StackTrace {} 23 class StackTrace {}
24 identical(a, b) => true; 24 identical(a, b) => true;
25 '''; 25 ''';
26 26
27 main() { 27 main() {
28 String generated = compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST); 28 compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST).then((generated) {
29 MockCompiler compiler = new MockCompiler(); 29 MockCompiler compiler = new MockCompiler();
30 var backend = compiler.backend; 30 var backend = compiler.backend;
31 31
32 // Make sure no class is emitted. 32 // Make sure no class is emitted.
33 Expect.isFalse(generated.contains(backend.emitter.finishClassesName)); 33 Expect.isFalse(generated.contains(backend.emitter.finishClassesName));
34 });
34 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698