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

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

Issue 14997006: Introduce a UnionTypeMask, currently limited to 4 types. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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_simple_inferer_test.dart
===================================================================
--- tests/compiler/dart2js/field_type_simple_inferer_test.dart (revision 23010)
+++ tests/compiler/dart2js/field_type_simple_inferer_test.dart (working copy)
@@ -450,7 +450,8 @@
disableInlining,
(inferrer, field) {
TypeMask type = f(inferrer);
- TypeMask inferredType = inferrer.internal.typeOf[field];
+ TypeMask inferredType =
+ inferrer.internal.typeOf[field].simplify(inferrer.compiler);
Expect.equals(type, inferredType, name);
});
});
@@ -478,11 +479,10 @@
// code at the declaration site of the fields does not matter.
runTest(TEST_5, {'f1': subclassOfInterceptor,
'f2': subclassOfInterceptor});
- // TODO(9415). These tests seem flaky.
- //runTest(TEST_6, {'f1': subclassOfInterceptor,
- // 'f2': subclassOfInterceptor});
- //runTest(TEST_7, {'f1': subclassOfInterceptor,
- // 'f2': subclassOfInterceptor});
+ runTest(TEST_6, {'f1': subclassOfInterceptor,
+ 'f2': subclassOfInterceptor});
+ runTest(TEST_7, {'f1': subclassOfInterceptor,
+ 'f2': subclassOfInterceptor});
runTest(TEST_8, {'f': (inferrer) => inferrer.stringType.nullable()});
runTest(TEST_9, {'f': (inferrer) => inferrer.stringType.nullable()});
« no previous file with comments | « tests/compiler/dart2js/field_type_inferer_test.dart ('k') | tests/compiler/dart2js/return_type_inferer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698