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

Unified Diff: tests/compiler/dart2js/types_of_captured_variables_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: Updated cf. comments Created 7 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
Index: tests/compiler/dart2js/types_of_captured_variables_test.dart
diff --git a/tests/compiler/dart2js/types_of_captured_variables_test.dart b/tests/compiler/dart2js/types_of_captured_variables_test.dart
index 3376b657066adc67bae04f297248409cd650cc75..9e802bd153a70387425430856c7f11777c864fe9 100644
--- a/tests/compiler/dart2js/types_of_captured_variables_test.dart
+++ b/tests/compiler/dart2js/types_of_captured_variables_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import 'package:expect/expect.dart';
+import "package:async_helper/async_helper.dart";
import 'compiler_helper.dart';
const String TEST1 = r"""
@@ -35,15 +36,18 @@ main() {
main() {
// Test that we know the type of captured, non-mutated variables.
- String generated = compileAll(TEST1);
- Expect.isTrue(generated.contains('+ 3'));
+ asyncTest(() => compileAll(TEST1).then((generated) {
+ Expect.isTrue(generated.contains('+ 3'));
+ }));
// Test that we know the type of captured, mutated variables.
- generated = compileAll(TEST2);
- Expect.isTrue(generated.contains('+ 3'));
+ asyncTest(() => compileAll(TEST2).then((generated) {
+ Expect.isTrue(generated.contains('+ 3'));
+ }));
// Test that we know when types of a captured, mutated variable
// conflict.
- generated = compileAll(TEST3);
- Expect.isFalse(generated.contains('+ 3'));
+ asyncTest(() => compileAll(TEST3).then((generated) {
+ Expect.isFalse(generated.contains('+ 3'));
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/type_variable_occurrence_test.dart ('k') | tests/compiler/dart2js/unneeded_part_js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698