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

Unified Diff: tests/compiler/dart2js/type_combination_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
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 ada744d453662bb006330e087a8ed263201f46dc..a6d9f8caf382c2060fbe4b61d36a53cd7168ed06 100644
--- a/tests/compiler/dart2js/type_combination_test.dart
+++ b/tests/compiler/dart2js/type_combination_test.dart
@@ -7,6 +7,7 @@ import "compiler_helper.dart";
import "parser_helper.dart";
import "../../../sdk/lib/_internal/compiler/implementation/ssa/ssa.dart";
import "../../../sdk/lib/_internal/compiler/implementation/types/types.dart";
+import "type_mask_test_helper.dart";
TypeMask nullType;
TypeMask objectType;
@@ -97,7 +98,7 @@ class RuleSet {
void testUnion(MockCompiler compiler) {
RuleSet ruleSet = new RuleSet('union',
- (t1, t2) => t1.union(t2, compiler).simplify(compiler));
+ (t1, t2) => simplify(t1.union(t2, compiler), compiler));
rule(type1, type2, result) => ruleSet.rule(type1, type2, result);
check(type1, type2, predicate) => ruleSet.check(type1, type2, predicate);
« no previous file with comments | « tests/compiler/dart2js/simple_inferrer_try_catch_test.dart ('k') | tests/compiler/dart2js/type_mask_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698