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

Side by Side Diff: tests/compiler/dart2js/mirrors_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) 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 '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart' ; 6 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart' ;
7 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util. dart'; 7 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util. dart';
8 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro r.dart'; 8 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro r.dart';
9 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart' 9 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'
10 show currentDirectory, nativeToUriPath; 10 show currentDirectory, nativeToUriPath;
11 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. dart'; 11 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. dart';
12 12
13 import 'dart:io'; 13 import 'dart:io';
14 import 'dart:uri';
15 14
16 const Uri DART_MIRRORS_URI = 15 const Uri DART_MIRRORS_URI =
17 const Uri.fromComponents(scheme: 'dart', path: 'mirrors'); 16 const Uri.fromComponents(scheme: 'dart', path: 'mirrors');
18 17
19 int count(Iterable iterable) { 18 int count(Iterable iterable) {
20 var count = 0; 19 var count = 0;
21 for (var element in iterable) { 20 for (var element in iterable) {
22 count++; 21 count++;
23 } 22 }
24 return count; 23 return count;
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 Expect.isTrue(privateFactoryConstructor.isPrivate); 1033 Expect.isTrue(privateFactoryConstructor.isPrivate);
1035 Expect.isFalse(privateFactoryConstructor.isConstConstructor); 1034 Expect.isFalse(privateFactoryConstructor.isConstConstructor);
1036 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor); 1035 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor);
1037 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor); 1036 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor);
1038 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor); 1037 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor);
1039 1038
1040 var metadata = privateClass.metadata; 1039 var metadata = privateClass.metadata;
1041 Expect.isNotNull(metadata); 1040 Expect.isNotNull(metadata);
1042 Expect.equals(0, metadata.length); 1041 Expect.equals(0, metadata.length);
1043 } 1042 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mirrors_metadata_test.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698