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

Side by Side Diff: tests/lib_2/mirrors/constructor_optional_args_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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_test; 5 library test.constructor_test;
6 6
7 @MirrorsUsed(targets: const [A]) 7 @MirrorsUsed(targets: const [A])
8 import 'dart:mirrors'; 8 import 'dart:mirrors';
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 Expect.equals('B(x=x, y=y, z=z)', '$m1', 'more 1'); 54 Expect.equals('B(x=x, y=y, z=z)', '$m1', 'more 1');
55 Expect.equals('B(x=1, y=y, z=z)', '$m2', 'more 2'); 55 Expect.equals('B(x=1, y=y, z=z)', '$m2', 'more 2');
56 Expect.equals('B(x=2, y=3, z=z)', '$m3', 'more 3'); 56 Expect.equals('B(x=2, y=3, z=z)', '$m3', 'more 3');
57 57
58 var o1 = cm.newInstance(const Symbol('oneMore'), [1]).reflectee; 58 var o1 = cm.newInstance(const Symbol('oneMore'), [1]).reflectee;
59 var o2 = cm.newInstance(const Symbol('oneMore'), [2, 3]).reflectee; 59 var o2 = cm.newInstance(const Symbol('oneMore'), [2, 3]).reflectee;
60 60
61 Expect.equals('B(x=1, y=y, z=z)', '$o1', 'oneMore one arg'); 61 Expect.equals('B(x=1, y=y, z=z)', '$o1', 'oneMore one arg');
62 Expect.equals('B(x=2, y=3, z=z)', '$o2', 'oneMore two args'); 62 Expect.equals('B(x=2, y=3, z=z)', '$o2', 'oneMore two args');
63 } 63 }
OLDNEW
« no previous file with comments | « tests/lib_2/mirrors/constructor_kinds_test.dart ('k') | tests/lib_2/mirrors/declarations_model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698