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

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

Issue 17759007: First pass at asynchronous input loading in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/simple_inferrer_closure_test.dart
diff --git a/tests/compiler/dart2js/simple_inferrer_closure_test.dart b/tests/compiler/dart2js/simple_inferrer_closure_test.dart
index 23d6db0a59ac38aa9c6d606e33263e76f7568e60..7ad5e58a5805557da9e741956803d57b92614b8f 100644
--- a/tests/compiler/dart2js/simple_inferrer_closure_test.dart
+++ b/tests/compiler/dart2js/simple_inferrer_closure_test.dart
@@ -82,23 +82,24 @@ main() {
void main() {
Uri uri = new Uri(scheme: 'source');
var compiler = compilerFor(TEST, uri);
- compiler.runCompiler(uri);
- var typesInferrer = compiler.typesTask.typesInferrer;
+ compiler.runCompiler(uri).then((_) {
+ var typesInferrer = compiler.typesTask.typesInferrer;
- checkReturn(String name, type) {
- var element = findElement(compiler, name);
- Expect.equals(type, typesInferrer.internal.returnTypeOf[element]);
- }
+ checkReturn(String name, type) {
+ var element = findElement(compiler, name);
+ Expect.equals(type, typesInferrer.internal.returnTypeOf[element]);
+ }
- checkReturn('returnInt1', typesInferrer.intType);
- // TODO(ngeoffray): We don't use types of mutated captured
- // variables anymore, because they could lead to optimistic results
- // needing to be re-analyzed.
- checkReturn('returnInt2', typesInferrer.dynamicType);
- checkReturn('returnInt3', typesInferrer.intType);
- checkReturn('returnInt4', typesInferrer.intType);
+ checkReturn('returnInt1', typesInferrer.intType);
+ // TODO(ngeoffray): We don't use types of mutated captured
+ // variables anymore, because they could lead to optimistic results
+ // needing to be re-analyzed.
+ checkReturn('returnInt2', typesInferrer.dynamicType);
+ checkReturn('returnInt3', typesInferrer.intType);
+ checkReturn('returnInt4', typesInferrer.intType);
- checkReturn('returnDyn1', typesInferrer.dynamicType);
- checkReturn('returnDyn2', typesInferrer.dynamicType);
- checkReturn('returnDyn3', typesInferrer.dynamicType);
+ checkReturn('returnDyn1', typesInferrer.dynamicType);
+ checkReturn('returnDyn2', typesInferrer.dynamicType);
+ checkReturn('returnDyn3', typesInferrer.dynamicType);
+ });
}

Powered by Google App Engine
This is Rietveld 408576698