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

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

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library instantiated_classes_test; 5 library instantiated_classes_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
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 'package:compiler/implementation/elements/elements.dart' 10 import 'package:compiler/src/elements/elements.dart'
11 show ClassElement; 11 show ClassElement;
12 import 'type_test_helper.dart'; 12 import 'type_test_helper.dart';
13 13
14 void main() { 14 void main() {
15 asyncTest(() => Future.forEach([ 15 asyncTest(() => Future.forEach([
16 () => test("class Class {}", ["Class"]), 16 () => test("class Class {}", ["Class"]),
17 () => test("""abstract class A {} 17 () => test("""abstract class A {}
18 class Class extends A {}""", 18 class Class extends A {}""",
19 ["Class"]), 19 ["Class"]),
20 () => test("""class A {} 20 () => test("""class A {}
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 Iterable<ClassElement> expectedClasses = 76 Iterable<ClassElement> expectedClasses =
77 directlyInstantiatedClasses.map(env.getElement); 77 directlyInstantiatedClasses.map(env.getElement);
78 Iterable<ClassElement> actualClasses = 78 Iterable<ClassElement> actualClasses =
79 env.compiler.resolverWorld.directlyInstantiatedClasses.where( 79 env.compiler.resolverWorld.directlyInstantiatedClasses.where(
80 (c) => c.library == env.compiler.mainApp); 80 (c) => c.library == env.compiler.mainApp);
81 Expect.setEquals(expectedClasses, actualClasses); 81 Expect.setEquals(expectedClasses, actualClasses);
82 }); 82 });
83 } 83 }
84 84
85 85
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/indentation_test.dart ('k') | tests/compiler/dart2js/js_parser_statements_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698