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

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

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' 6 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'
7 show TypeMask; 7 show TypeMask;
8 8
9 import 'compiler_helper.dart'; 9 import 'compiler_helper.dart';
10 import 'parser_helper.dart'; 10 import 'parser_helper.dart';
11 11
12 void compileAndFind(String code, 12 void compileAndFind(String code,
13 String className, 13 String className,
14 String memberName, 14 String memberName,
15 bool disableInlining, 15 bool disableInlining,
16 check(compiler, element)) { 16 check(compiler, element)) {
17 Uri uri = new Uri.fromComponents(scheme: 'source'); 17 Uri uri = new Uri(scheme: 'source');
18 var compiler = compilerFor(code, uri); 18 var compiler = compilerFor(code, uri);
19 compiler.runCompiler(uri); 19 compiler.runCompiler(uri);
20 compiler.disableInlining = disableInlining; 20 compiler.disableInlining = disableInlining;
21 var cls = findElement(compiler, className); 21 var cls = findElement(compiler, className);
22 var member = cls.lookupMember(buildSourceString(memberName)); 22 var member = cls.lookupMember(buildSourceString(memberName));
23 return check(compiler.typesTask.typesInferrer, member); 23 return check(compiler.typesTask.typesInferrer, member);
24 } 24 }
25 25
26 const String TEST_1 = r""" 26 const String TEST_1 = r"""
27 class A { 27 class A {
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 'f4': (inferrer) => inferrer.intType, 526 'f4': (inferrer) => inferrer.intType,
527 'f5': (inferrer) => inferrer.numType.nullable(), 527 'f5': (inferrer) => inferrer.numType.nullable(),
528 'f6': (inferrer) => inferrer.stringType.nullable()}); 528 'f6': (inferrer) => inferrer.stringType.nullable()});
529 529
530 runTest(TEST_25, {'f1': (inferrer) => inferrer.intType }); 530 runTest(TEST_25, {'f1': (inferrer) => inferrer.intType });
531 } 531 }
532 532
533 void main() { 533 void main() {
534 test(); 534 test();
535 } 535 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/field_type_inferer_test.dart ('k') | tests/compiler/dart2js/gvn_dynamic_field_get_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698