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

Side by Side Diff: tests/lib_2/mirrors/constructor_kinds_test.dart

Issue 2999373002: Migrated test block 218 to Dart 2.0. (Closed)
Patch Set: Addressed Bob's comments. Created 3 years, 3 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 library test.constructor_kinds_test; 5 library test.constructor_kinds_test;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 class ClassWithDefaultConstructor {} 10 class ClassWithDefaultConstructor {}
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Expect.isFalse(mm.isRedirectingConstructor); 103 // Expect.isFalse(mm.isRedirectingConstructor);
104 // Expect.isTrue(mm.isConstConstructor); 104 // Expect.isTrue(mm.isConstConstructor);
105 105
106 mm = cm.declarations[#Class.constRedirectingFactoryConstructor]; 106 mm = cm.declarations[#Class.constRedirectingFactoryConstructor];
107 Expect.isTrue(mm.isConstructor); 107 Expect.isTrue(mm.isConstructor);
108 Expect.isFalse(mm.isGenerativeConstructor); 108 Expect.isFalse(mm.isGenerativeConstructor);
109 Expect.isTrue(mm.isFactoryConstructor); 109 Expect.isTrue(mm.isFactoryConstructor);
110 Expect.isTrue(mm.isRedirectingConstructor); 110 Expect.isTrue(mm.isRedirectingConstructor);
111 Expect.isTrue(mm.isConstConstructor); 111 Expect.isTrue(mm.isConstConstructor);
112 } 112 }
OLDNEW
« no previous file with comments | « tests/lib_2/mirrors/closurization_equivalence_test.dart ('k') | tests/lib_2/mirrors/constructor_optional_args_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698