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

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

Issue 98533005: Handle @proxy classes in type checker. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years 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
« no previous file with comments | « tests/compiler/dart2js/resolver_test.dart ('k') | tests/compiler/dart2js/value_range_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 String DEFAULT_CORELIB_WITH_LIST = r''' 11 const String DEFAULT_CORELIB_WITH_LIST = r'''
12 class Object { 12 class Object {
13 Object(); 13 Object();
14 } 14 }
15 class bool {} 15 class bool {}
16 abstract class List {} 16 abstract class List {}
17 class num {} 17 class num {}
18 class int {} 18 class int {}
19 class double {} 19 class double {}
20 class String {} 20 class String {}
21 class Function {} 21 class Function {}
22 class Type {} 22 class Type {}
23 class Map {} 23 class Map {}
24 class StackTrace {} 24 class StackTrace {}
25 identical(a, b) => true; 25 identical(a, b) => true;
26 const proxy = 0;
26 '''; 27 ''';
27 28
28 main() { 29 main() {
29 asyncTest(() => compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST). 30 asyncTest(() => compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST).
30 then((generated) { 31 then((generated) {
31 MockCompiler compiler = new MockCompiler(); 32 MockCompiler compiler = new MockCompiler();
32 var backend = compiler.backend; 33 var backend = compiler.backend;
33 34
34 // Make sure no class is emitted. 35 // Make sure no class is emitted.
35 Expect.isFalse(generated.contains(backend.emitter.finishClassesName)); 36 Expect.isFalse(generated.contains(backend.emitter.finishClassesName));
36 })); 37 }));
37 } 38 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/resolver_test.dart ('k') | tests/compiler/dart2js/value_range_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698