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

Side by Side Diff: tests/compiler/dart2js/instantiated_classes_test.dart

Issue 2625713002: Rename Enqueuer.universe to worldBuilder. (Closed)
Patch Set: Updated cf. comments Created 3 years, 11 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 instantiated_classes_test; 5 library instantiated_classes_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/src/elements/elements.dart' show ClassElement; 10 import 'package:compiler/src/elements/elements.dart' show ClassElement;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 for (String newClass in newClasses) { 86 for (String newClass in newClasses) {
87 mainSource.write(' new $newClass();\n'); 87 mainSource.write(' new $newClass();\n');
88 } 88 }
89 mainSource.write('}'); 89 mainSource.write('}');
90 return TypeEnvironment 90 return TypeEnvironment
91 .create(source, mainSource: mainSource.toString(), useMockCompiler: true) 91 .create(source, mainSource: mainSource.toString(), useMockCompiler: true)
92 .then((env) { 92 .then((env) {
93 Iterable<ClassElement> expectedClasses = 93 Iterable<ClassElement> expectedClasses =
94 directlyInstantiatedClasses.map(env.getElement); 94 directlyInstantiatedClasses.map(env.getElement);
95 Iterable<ClassElement> actualClasses = env 95 Iterable<ClassElement> actualClasses = env
96 .compiler.resolverWorld.directlyInstantiatedClasses 96 .compiler.resolutionWorldBuilder.directlyInstantiatedClasses
97 .where((c) => c.library == env.compiler.mainApp); 97 .where((c) => c.library == env.compiler.mainApp);
98 Expect.setEquals(expectedClasses, actualClasses); 98 Expect.setEquals(expectedClasses, actualClasses);
99 }); 99 });
100 } 100 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/gvn_dynamic_field_get_test.dart ('k') | tests/compiler/dart2js/kernel/closed_world_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698