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

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

Issue 12764005: Get rid of old code for union/intersection in HType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove unused factory methods. Created 7 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
Index: tests/compiler/dart2js/type_combination_test.dart
diff --git a/tests/compiler/dart2js/type_combination_test.dart b/tests/compiler/dart2js/type_combination_test.dart
index 0890eaa3adc25160f820fab31d9f5137beabb135..d9b36547bf16156a9471a10c35cb37cc1966b08f 100644
--- a/tests/compiler/dart2js/type_combination_test.dart
+++ b/tests/compiler/dart2js/type_combination_test.dart
@@ -351,7 +351,7 @@ void testUnion(MockCompiler compiler) {
INDEXABLE_PRIMITIVE.union(DOUBLE_OR_NULL, compiler));
Expect.equals(jsIndexableOrNull,
INDEXABLE_PRIMITIVE.union(STRING_OR_NULL, compiler));
- Expect.equals(UNKNOWN,
+ Expect.equals(jsIndexableOrNull,
INDEXABLE_PRIMITIVE.union(NULL, compiler));
Expect.equals(INDEXABLE_PRIMITIVE,
INDEXABLE_PRIMITIVE.union(FIXED_ARRAY, compiler));
@@ -951,7 +951,7 @@ void testUnion(MockCompiler compiler) {
NULL.union(INTEGER, compiler));
Expect.equals(DOUBLE_OR_NULL,
NULL.union(DOUBLE, compiler));
- Expect.equals(UNKNOWN,
+ Expect.equals(jsIndexableOrNull,
NULL.union(INDEXABLE_PRIMITIVE, compiler));
Expect.equals(STRING_OR_NULL,
NULL.union(STRING, compiler));
@@ -961,10 +961,8 @@ void testUnion(MockCompiler compiler) {
NULL.union(MUTABLE_ARRAY, compiler));
Expect.equals(jsExtendableArrayOrNull,
NULL.union(EXTENDABLE_ARRAY, compiler));
- Expect.equals(UNKNOWN,
- NULL.union(nonPrimitive1, compiler));
- Expect.equals(UNKNOWN,
- NULL.union(nonPrimitive2, compiler));
+ Expect.isTrue(NULL.union(nonPrimitive1, compiler).canBeNull());
+ Expect.isTrue(NULL.union(nonPrimitive2, compiler).canBeNull());
Expect.equals(potentialArray,
NULL.union(potentialArray, compiler));
Expect.equals(potentialString,
@@ -2046,6 +2044,7 @@ void main() {
compiler.enqueuer.resolution.registerInstantiatedClass(element);
}
});
+ compiler.enqueuer.resolution.registerInstantiatedClass(compiler.mapClass);
compiler.world.populate();
// Grab hold of a supertype for String so we can produce potential

Powered by Google App Engine
This is Rietveld 408576698