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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart' ; 6 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart' ;
6 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util. dart'; 7 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util. dart';
7 8
8 import 'dart:io'; 9 import 'dart:io';
9 10
10 int count(Iterable iterable) { 11 int count(Iterable iterable) {
11 var count = 0; 12 var count = 0;
12 for (var element in iterable) { 13 for (var element in iterable) {
13 count++; 14 count++;
14 } 15 }
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 Expect.isTrue(privateFactoryConstructor.isPrivate); 1043 Expect.isTrue(privateFactoryConstructor.isPrivate);
1043 Expect.isFalse(privateFactoryConstructor.isConstConstructor); 1044 Expect.isFalse(privateFactoryConstructor.isConstConstructor);
1044 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor); 1045 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor);
1045 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor); 1046 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor);
1046 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor); 1047 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor);
1047 1048
1048 var metadata = privateClass.metadata; 1049 var metadata = privateClass.metadata;
1049 Expect.isNotNull(metadata); 1050 Expect.isNotNull(metadata);
1050 Expect.equals(0, metadata.length); 1051 Expect.equals(0, metadata.length);
1051 } 1052 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698