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

Side by Side Diff: tests/compiler/dart2js/equivalence/check_functions.dart

Issue 2926863002: Handle parameters in compile_from_dill_test (Closed)
Patch Set: Cleanup. Created 3 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 /// Equivalence test functions for data objects. 5 /// Equivalence test functions for data objects.
6 6
7 library dart2js.equivalence.functions; 7 library dart2js.equivalence.functions;
8 8
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import 'package:compiler/src/common/resolution.dart'; 10 import 'package:compiler/src/common/resolution.dart';
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 } 201 }
202 Expect.isFalse( 202 Expect.isFalse(
203 child.isInstantiated, 203 child.isInstantiated,
204 'Missing subclass ${child.cls} of ${node1.cls} in ' 204 'Missing subclass ${child.cls} of ${node1.cls} in '
205 '${node2.directSubclasses}'); 205 '${node2.directSubclasses}');
206 } 206 }
207 } 207 }
208 checkMixinUses( 208 checkMixinUses(
209 closedWorld1, closedWorld2, node1.cls, node2.cls, elementEquivalence, 209 closedWorld1, closedWorld2, node1.cls, node2.cls, elementEquivalence,
210 verbose: verbose); 210 verbose: verbose);
211 Expect.isNotNull(closedWorld1.getClassSet(cls1));
212 Expect.isNotNull(closedWorld2.getClassSet(cls2));
211 } 213 }
212 214
213 void checkMixinUses( 215 void checkMixinUses(
214 ClosedWorld closedWorld1, 216 ClosedWorld closedWorld1,
215 ClosedWorld closedWorld2, 217 ClosedWorld closedWorld2,
216 ClassEntity class1, 218 ClassEntity class1,
217 ClassEntity class2, 219 ClassEntity class2,
218 bool elementEquivalence(Entity a, Entity b), 220 bool elementEquivalence(Entity a, Entity b),
219 {bool verbose: false}) { 221 {bool verbose: false}) {
220 checkSets(closedWorld1.mixinUsesOf(class1), closedWorld2.mixinUsesOf(class2), 222 checkSets(closedWorld1.mixinUsesOf(class1), closedWorld2.mixinUsesOf(class2),
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 areAbstractUsagesEquivalent, 785 areAbstractUsagesEquivalent,
784 verbose: verbose); 786 verbose: verbose);
785 checkMaps( 787 checkMaps(
786 worldBuilder1.instanceMemberUsageForTesting, 788 worldBuilder1.instanceMemberUsageForTesting,
787 worldBuilder2.instanceMemberUsageForTesting, 789 worldBuilder2.instanceMemberUsageForTesting,
788 'instanceMemberUsageForTesting', 790 'instanceMemberUsageForTesting',
789 elementEquivalence, 791 elementEquivalence,
790 areAbstractUsagesEquivalent, 792 areAbstractUsagesEquivalent,
791 verbose: verbose); 793 verbose: verbose);
792 } 794 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698