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

Unified Diff: tests/compiler/dart2js/kernel/compile_from_dill_test.dart

Issue 2939063002: Strong mode cleaning of many dart2js tests. (Closed)
Patch Set: Use ClassElement. 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/kernel/compile_from_dill_test.dart
diff --git a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
index b2ef74bc896bba64f78aaa8a28ceadbb0f602217..49b2add192f05bedabf92b035af5ee95dca7e23a 100644
--- a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
+++ b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
@@ -143,10 +143,12 @@ Future<ResultKind> mainInternal(List<String> args,
checkResolutionEnqueuers(closedWorld1.backendUsage, closedWorld2.backendUsage,
compiler1.enqueuer.resolution, compiler2.enqueuer.resolution,
- elementEquivalence: equivalence.entityEquivalence,
+ elementEquivalence: (a, b) => equivalence.entityEquivalence(a, b),
typeEquivalence: (ResolutionDartType a, DartType b) {
- return equivalence.typeEquivalence(unalias(a), b);
- }, elementFilter: elementFilter, verbose: arguments.verbose);
+ return equivalence.typeEquivalence(unalias(a), b);
+ },
+ elementFilter: elementFilter,
+ verbose: arguments.verbose);
checkClosedWorlds(closedWorld1, closedWorld2,
strategy: equivalence.defaultStrategy,
@@ -160,10 +162,12 @@ Future<ResultKind> mainInternal(List<String> args,
checkCodegenEnqueuers(compiler1.enqueuer.codegenEnqueuerForTesting,
compiler2.enqueuer.codegenEnqueuerForTesting,
- elementEquivalence: equivalence.entityEquivalence,
+ elementEquivalence: (a, b) => equivalence.entityEquivalence(a, b),
typeEquivalence: (ResolutionDartType a, DartType b) {
- return equivalence.typeEquivalence(unalias(a), b);
- }, elementFilter: elementFilter, verbose: arguments.verbose);
+ return equivalence.typeEquivalence(unalias(a), b);
+ },
+ elementFilter: elementFilter,
+ verbose: arguments.verbose);
collector1.outputMap
.forEach((OutputType outputType, Map<String, BufferedOutputSink> map1) {

Powered by Google App Engine
This is Rietveld 408576698