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

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

Issue 12443005: Add superclasses, subclasses, and subtypes tracking to the world. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix long lines. Created 7 years, 10 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/field_type_inferer_test.dart
diff --git a/tests/compiler/dart2js/field_type_inferer_test.dart b/tests/compiler/dart2js/field_type_inferer_test.dart
index 04773aa361877e8f31e9ac677c88e9a9c74ce5e5..62c6be0a7bd6a6a27a978b02082c4e3bd2130d7f 100644
--- a/tests/compiler/dart2js/field_type_inferer_test.dart
+++ b/tests/compiler/dart2js/field_type_inferer_test.dart
@@ -344,7 +344,12 @@ void doTest(String test, bool disableInlining, Map<String, HType> fields) {
disableInlining,
(backend, field) {
HType inferredType = backend.optimisticFieldType(field);
- Expect.equals(type, inferredType);
+ if (type == HType.UNKNOWN) {
+ Expect.isTrue(inferredType == HType.UNKNOWN ||
+ inferredType.isTop(backend.compiler));
+ } else {
+ Expect.equals(type, inferredType);
+ }
});
});
}

Powered by Google App Engine
This is Rietveld 408576698