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

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

Issue 690103004: 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "package:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 import 'package:compiler/implementation/mirrors/source_mirrors.dart'; 7 import 'package:compiler/src/mirrors/source_mirrors.dart';
8 import 'package:compiler/implementation/mirrors/mirrors_util.dart'; 8 import 'package:compiler/src/mirrors/mirrors_util.dart';
9 import 'package:compiler/implementation/mirrors/analyze.dart'; 9 import 'package:compiler/src/mirrors/analyze.dart';
10 import 'package:compiler/implementation/filenames.dart' 10 import 'package:compiler/src/filenames.dart'
11 show currentDirectory; 11 show currentDirectory;
12 import 'package:compiler/implementation/source_file_provider.dart'; 12 import 'package:compiler/src/source_file_provider.dart';
13 13
14 import 'dart:io'; 14 import 'dart:io';
15 15
16 final Uri DART_MIRRORS_URI = new Uri(scheme: 'dart', path: 'mirrors'); 16 final Uri DART_MIRRORS_URI = new Uri(scheme: 'dart', path: 'mirrors');
17 17
18 int count(Iterable iterable) { 18 int count(Iterable iterable) {
19 var count = 0; 19 var count = 0;
20 for (var element in iterable) { 20 for (var element in iterable) {
21 count++; 21 count++;
22 } 22 }
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 Expect.isTrue(privateFactoryConstructor.isPrivate); 986 Expect.isTrue(privateFactoryConstructor.isPrivate);
987 Expect.isFalse(privateFactoryConstructor.isConstConstructor); 987 Expect.isFalse(privateFactoryConstructor.isConstConstructor);
988 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor); 988 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor);
989 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor); 989 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor);
990 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor); 990 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor);
991 991
992 var metadata = privateClass.metadata; 992 var metadata = privateClass.metadata;
993 Expect.isNotNull(metadata); 993 Expect.isNotNull(metadata);
994 Expect.equals(0, metadata.length); 994 Expect.equals(0, metadata.length);
995 } 995 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mirrors_lookup_test.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698