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

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

Issue 552253002: Adapt TypeMask tests to new TypeMask interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/type_mask_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/union_type_test.dart
diff --git a/tests/compiler/dart2js/union_type_test.dart b/tests/compiler/dart2js/union_type_test.dart
index ae59da3c263f6c2bb7cc5e8614fab45f75e24421..5cbecc1e27e2e03c455869ebb2338422f0438d5f 100644
--- a/tests/compiler/dart2js/union_type_test.dart
+++ b/tests/compiler/dart2js/union_type_test.dart
@@ -11,10 +11,12 @@ import "package:compiler/implementation/types/types.dart";
import "package:compiler/implementation/dart_types.dart";
main() {
- asyncTest(() => MockCompiler.create((MockCompiler compiler) {
- compiler.intClass.ensureResolved(compiler);
- compiler.stringClass.ensureResolved(compiler);
-
+ MockCompiler compiler = new MockCompiler.internal(analyzeOnly: true);
karlklose 2014/09/09 10:59:15 Why this change?
herhut 2014/09/09 11:03:58 A call to [create] only creates a compiler but doe
+ asyncTest(() => compiler.runCompiler(null, """
+ main() {
+ print(2); print("Hello");
+ }
+ """).then((_) {
FlatTypeMask mask1 =
new FlatTypeMask.exact(compiler.intClass);
FlatTypeMask mask2 =
« no previous file with comments | « tests/compiler/dart2js/type_mask_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698