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

Unified Diff: tests/compiler/dart2js/mirror_final_field_inferrer2_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/mirror_final_field_inferrer2_test.dart
diff --git a/tests/compiler/dart2js/mirror_final_field_inferrer2_test.dart b/tests/compiler/dart2js/mirror_final_field_inferrer2_test.dart
index 95c7e6b93e8d0bd78b92dd7134cad1a95bf73e25..093833e74d3df2e6641e23d72c443a09e2405cec 100644
--- a/tests/compiler/dart2js/mirror_final_field_inferrer2_test.dart
+++ b/tests/compiler/dart2js/mirror_final_field_inferrer2_test.dart
@@ -8,6 +8,7 @@ import 'package:expect/expect.dart';
import "package:async_helper/async_helper.dart";
import 'memory_compiler.dart' show compilerFor;
import 'compiler_helper.dart' show findElement;
+import 'type_mask_test_helper.dart';
const MEMORY_SOURCE_FILES = const <String, String> {
'main.dart': """
@@ -27,9 +28,9 @@ void main() {
asyncTest(() => compiler.runCompiler(Uri.parse('memory:main.dart')).then((_) {
var element = findElement(compiler, 'field');
var typesTask = compiler.typesTask;
- var typesInferrer = typesTask.typesInferrer;
+ var typesInferrer = typesTask.typesInferrer;
Expect.equals(typesTask.uint31Type,
- typesInferrer.getTypeOfElement(element).simplify(compiler),
+ simplify(typesInferrer.getTypeOfElement(element), compiler),
'field');
}));
}
« no previous file with comments | « tests/compiler/dart2js/map_tracer_test.dart ('k') | tests/compiler/dart2js/mirror_final_field_inferrer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698