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

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

Issue 263103003: Remove warnings from dart2js test-suite. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove debug code. Created 6 years, 7 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
« no previous file with comments | « tests/compiler/dart2js/parser_test.dart ('k') | tests/compiler/dart2js/resolver_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 // 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 'package:expect/expect.dart';
9 import "package:async_helper/async_helper.dart"; 9 import "package:async_helper/async_helper.dart";
10 import 'compiler_helper.dart'; 10 import 'compiler_helper.dart';
11 import 'parser_helper.dart'; 11 import 'parser_helper.dart';
12 import '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart';
12 13
13 const String NO_RUNTIME_TYPE = r""" 14 const String NO_RUNTIME_TYPE = r"""
14 import 'dart:core' as prefix; 15 import 'dart:core' as prefix;
15 class A { 16 class A {
16 A(); 17 A();
17 A.z(); 18 A.z();
18 static var bar; 19 static var bar;
19 static foo() {} 20 static foo() {}
20 } 21 }
21 main() { 22 main() {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 Expect.isFalse(compiler.enqueuer.resolution.isProcessed(element)); 114 Expect.isFalse(compiler.enqueuer.resolution.isProcessed(element));
114 }); 115 });
115 116
116 testHasRuntimeType(HAS_RUNTIME_TYPE_1); 117 testHasRuntimeType(HAS_RUNTIME_TYPE_1);
117 testHasRuntimeType(HAS_RUNTIME_TYPE_2); 118 testHasRuntimeType(HAS_RUNTIME_TYPE_2);
118 testHasRuntimeType(HAS_RUNTIME_TYPE_3); 119 testHasRuntimeType(HAS_RUNTIME_TYPE_3);
119 testHasRuntimeType(HAS_RUNTIME_TYPE_4); 120 testHasRuntimeType(HAS_RUNTIME_TYPE_4);
120 testHasRuntimeType(HAS_RUNTIME_TYPE_5); 121 testHasRuntimeType(HAS_RUNTIME_TYPE_5);
121 testHasRuntimeType(HAS_RUNTIME_TYPE_6); 122 testHasRuntimeType(HAS_RUNTIME_TYPE_6);
122 } 123 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/parser_test.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698