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

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

Issue 1284673003: Move dart2jslib parts into separate libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix try. Created 5 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
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 6
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import 'compiler_helper.dart'; 8 import 'compiler_helper.dart';
9 import 'package:compiler/src/types/types.dart'; 9 import 'package:compiler/src/types/types.dart';
10 import 'parser_helper.dart';
11 import 'type_mask_test_helper.dart'; 10 import 'type_mask_test_helper.dart';
12 11
13 const String TEST1 = """ 12 const String TEST1 = """
14 class A { 13 class A {
15 noSuchMethod(im) => 42; 14 noSuchMethod(im) => 42;
16 } 15 }
17 16
18 class B extends A { 17 class B extends A {
19 foo(); 18 foo();
20 } 19 }
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 var compiler4 = compilerFor(TEST4, uri); 214 var compiler4 = compilerFor(TEST4, uri);
216 asyncTest(() => compiler4.runCompiler(uri).then((_) { 215 asyncTest(() => compiler4.runCompiler(uri).then((_) {
217 checkReturn(compiler4, 'test1', const TypeMask.nonNullEmpty()); 216 checkReturn(compiler4, 'test1', const TypeMask.nonNullEmpty());
218 checkReturn(compiler4, 'test2', compiler4.typesTask.mapType); 217 checkReturn(compiler4, 'test2', compiler4.typesTask.mapType);
219 checkReturn(compiler4, 'test3', compiler4.typesTask.mapType); 218 checkReturn(compiler4, 'test3', compiler4.typesTask.mapType);
220 checkReturn(compiler4, 'test4', compiler4.typesTask.mapType); 219 checkReturn(compiler4, 'test4', compiler4.typesTask.mapType);
221 checkReturn(compiler4, 'test5', compiler4.typesTask.mapType); 220 checkReturn(compiler4, 'test5', compiler4.typesTask.mapType);
222 checkReturn(compiler4, 'test6', compiler4.typesTask.mapType); 221 checkReturn(compiler4, 'test6', compiler4.typesTask.mapType);
223 })); 222 }));
224 } 223 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698