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

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

Issue 165143004: Move TypeMask.simplify to a test helper. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 6 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
« no previous file with comments | « tests/compiler/dart2js/cpa_inference_test.dart ('k') | tests/compiler/dart2js/issue13354_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/field_type_simple_inferer_test.dart
diff --git a/tests/compiler/dart2js/field_type_simple_inferer_test.dart b/tests/compiler/dart2js/field_type_simple_inferer_test.dart
index 54c718af15f6a26d31e649c1e754eda52d00dae6..9f0d4984b9af96ae2d9e1dfeb5ec2855d89905df 100644
--- a/tests/compiler/dart2js/field_type_simple_inferer_test.dart
+++ b/tests/compiler/dart2js/field_type_simple_inferer_test.dart
@@ -10,6 +10,7 @@ import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'
import 'compiler_helper.dart';
import 'parser_helper.dart';
+import 'type_mask_test_helper.dart';
void compileAndFind(String code,
String className,
@@ -487,7 +488,7 @@ void doTest(String test, bool disableInlining, Map<String, Function> fields) {
TypeMask type = f(compiler.typesTask);
var inferrer = compiler.typesTask.typesInferrer;
TypeMask inferredType =
- inferrer.getTypeOfElement(field).simplify(inferrer.compiler);
+ simplify(inferrer.getTypeOfElement(field), inferrer.compiler);
Expect.equals(type, inferredType, test);
});
});
« no previous file with comments | « tests/compiler/dart2js/cpa_inference_test.dart ('k') | tests/compiler/dart2js/issue13354_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698