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

Unified Diff: tests/compiler/dart2js/no_duplicate_constructor_body_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/no_duplicate_constructor_body_test.dart
diff --git a/tests/compiler/dart2js/no_duplicate_constructor_body_test.dart b/tests/compiler/dart2js/no_duplicate_constructor_body_test.dart
index 3942536ef672f86efecc7671f9fcf3620e084403..bad4b4c99935b1db8d69a56a51996dc1b3ff03fd 100644
--- a/tests/compiler/dart2js/no_duplicate_constructor_body_test.dart
+++ b/tests/compiler/dart2js/no_duplicate_constructor_body_test.dart
@@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import "package:async_helper/async_helper.dart";
import 'compiler_helper.dart';
const String CODE = """
@@ -15,8 +16,9 @@ main() {
""";
main() {
- String generated = compileAll(CODE);
- RegExp regexp = new RegExp(r'\A: {"": "[A-za-z]+;"');
- Iterator<Match> matches = regexp.allMatches(generated).iterator;
- checkNumberOfMatches(matches, 1);
+ asyncTest(() => compileAll(CODE).then((generated) {
+ RegExp regexp = new RegExp(r'\A: {"": "[A-za-z]+;"');
+ Iterator<Match> matches = regexp.allMatches(generated).iterator;
+ checkNumberOfMatches(matches, 1);
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart ('k') | tests/compiler/dart2js/no_duplicate_stub_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698