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

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

Issue 13493011: Fix some tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 // Test that resolution does not resolve things we know will not be 5 // Test that resolution does not resolve things we know will not be
6 // needed by the backend. 6 // needed by the backend.
7 7
8 import 'package:expect/expect.dart';
8 import 'compiler_helper.dart'; 9 import 'compiler_helper.dart';
9 import 'parser_helper.dart'; 10 import 'parser_helper.dart';
10 11
11 const String NO_RUNTIME_TYPE = r""" 12 const String NO_RUNTIME_TYPE = r"""
12 import 'dart:core' as prefix; 13 import 'dart:core' as prefix;
13 class A { 14 class A {
14 A(); 15 A();
15 A.z(); 16 A.z();
16 static var bar; 17 static var bar;
17 static foo() {} 18 static foo() {}
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 Expect.isFalse(compiler.enqueuer.resolution.isProcessed(element)); 110 Expect.isFalse(compiler.enqueuer.resolution.isProcessed(element));
110 }); 111 });
111 112
112 testHasRuntimeType(HAS_RUNTIME_TYPE_1); 113 testHasRuntimeType(HAS_RUNTIME_TYPE_1);
113 testHasRuntimeType(HAS_RUNTIME_TYPE_2); 114 testHasRuntimeType(HAS_RUNTIME_TYPE_2);
114 testHasRuntimeType(HAS_RUNTIME_TYPE_3); 115 testHasRuntimeType(HAS_RUNTIME_TYPE_3);
115 testHasRuntimeType(HAS_RUNTIME_TYPE_4); 116 testHasRuntimeType(HAS_RUNTIME_TYPE_4);
116 testHasRuntimeType(HAS_RUNTIME_TYPE_5); 117 testHasRuntimeType(HAS_RUNTIME_TYPE_5);
117 testHasRuntimeType(HAS_RUNTIME_TYPE_6); 118 testHasRuntimeType(HAS_RUNTIME_TYPE_6);
118 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698