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

Unified Diff: tests/compiler/dart2js/class_set_test.dart

Issue 1683063002: Updates from comments. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix test. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/class_set_test.dart
diff --git a/tests/compiler/dart2js/class_set_test.dart b/tests/compiler/dart2js/class_set_test.dart
index 71fbd97fe505f820fbe305a956f6df4b01262ae5..1d3b04f3a1159a5440bc35fcff1366505c66bc01 100644
--- a/tests/compiler/dart2js/class_set_test.dart
+++ b/tests/compiler/dart2js/class_set_test.dart
@@ -411,7 +411,7 @@ testForEach() async {
visited = <ClassElement>[];
classSet.forEachSubclass((ClassElement cls) {
visited.add(cls);
- return ForEach.CONTINUE;
+ return IterationStep.CONTINUE;
}, ClassHierarchyNode.ALL);
Expect.listEquals(expected, visited,
@@ -444,7 +444,7 @@ testForEach() async {
visited = <ClassElement>[];
classSet.forEachSubtype((ClassElement cls) {
visited.add(cls);
- return ForEach.CONTINUE;
+ return IterationStep.CONTINUE;
}, ClassHierarchyNode.ALL);
Expect.listEquals(expected, visited,
@@ -478,14 +478,14 @@ testForEach() async {
ClassSet classSet = world.getClassSet(cls);
List<ClassElement> visited = <ClassElement>[];
- ForEach visit(ClassElement cls) {
+ IterationStep visit(ClassElement cls) {
visited.add(cls);
if (cls == stop) {
- return ForEach.STOP;
+ return IterationStep.STOP;
} else if (skipSubclasses.contains(cls)) {
- return ForEach.SKIP_SUBCLASSES;
+ return IterationStep.SKIP_SUBCLASSES;
}
- return ForEach.CONTINUE;
+ return IterationStep.CONTINUE;
}
if (forEachSubtype) {
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698