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

Side by Side Diff: tests/lib/mirrors/parameter_of_mixin_app_constructor_test.dart

Issue 2727323002: Add @MirrorsUsed annotations to speed up tests. (Closed)
Patch Set: Minor fixes. Created 3 years, 9 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.parameter_of_mixin_app_constructor; 5 library test.parameter_of_mixin_app_constructor;
6 6
7 @MirrorsUsed(targets: "test.parameter_of_mixin_app_constructor")
7 import 'dart:mirrors'; 8 import 'dart:mirrors';
8 import 'stringify.dart'; 9 import 'stringify.dart';
9 10
10 class MapView { 11 class MapView {
11 final _map; 12 final _map;
12 MapView(map) : this._map = map; 13 MapView(map) : this._map = map;
13 } 14 }
14 15
15 abstract class UnmodifiableMapMixin { 16 abstract class UnmodifiableMapMixin {
16 someFunctionality() {} 17 someFunctionality() {}
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ' final, type = Type(s(dynamic), top-level))]', 86 ' final, type = Type(s(dynamic), top-level))]',
86 soleConstructorOf(mp.superclass.superclass).parameters); 87 soleConstructorOf(mp.superclass.superclass).parameters);
87 expect('[Parameter(s(p1) in s(S),' 88 expect('[Parameter(s(p1) in s(S),'
88 ' type = Class(s(int) in s(dart.core), top-level)),' 89 ' type = Class(s(int) in s(dart.core), top-level)),'
89 ' Parameter(s(p2) in s(S),' 90 ' Parameter(s(p2) in s(S),'
90 ' type = Class(s(String) in s(dart.core), top-level))]', 91 ' type = Class(s(String) in s(dart.core), top-level))]',
91 soleConstructorOf(mp.superclass.superclass.superclass).parameters); 92 soleConstructorOf(mp.superclass.superclass.superclass).parameters);
92 expect('[]', 93 expect('[]',
93 soleConstructorOf(mp.superclass.superclass.superclass.superclass).param eters); 94 soleConstructorOf(mp.superclass.superclass.superclass.superclass).param eters);
94 } 95 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/parameter_metadata_test.dart ('k') | tests/lib/mirrors/private_class_field_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698