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

Unified Diff: tests/compiler/dart2js/issue13354_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/issue13354_test.dart
diff --git a/tests/compiler/dart2js/issue13354_test.dart b/tests/compiler/dart2js/issue13354_test.dart
index 7cc2f5502cc4a4e0aedbc02e3e7c267b9f11b541..6a381305668cc299149b172f193580c8963e3202 100644
--- a/tests/compiler/dart2js/issue13354_test.dart
+++ b/tests/compiler/dart2js/issue13354_test.dart
@@ -6,6 +6,7 @@ import 'package:expect/expect.dart';
import "package:async_helper/async_helper.dart";
import 'compiler_helper.dart';
import 'parser_helper.dart';
+import 'type_mask_test_helper.dart';
const String TEST = """
bar() => 42;
@@ -36,7 +37,7 @@ void main() {
var element = findElement(compiler, name);
Expect.equals(
type,
- typesInferrer.getReturnTypeOfElement(element).simplify(compiler),
+ simplify(typesInferrer.getReturnTypeOfElement(element), compiler),
name);
}
@@ -44,7 +45,7 @@ void main() {
var cls = findElement(compiler, className);
var element = cls.lookupLocalMember(methodName);
Expect.equals(type,
- typesInferrer.getReturnTypeOfElement(element).simplify(compiler));
+ simplify(typesInferrer.getReturnTypeOfElement(element), compiler));
}
checkReturn('bar', typesTask.uint31Type);
« no previous file with comments | « tests/compiler/dart2js/field_type_simple_inferer_test.dart ('k') | tests/compiler/dart2js/list_tracer2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698